#Error with Github Authentication in Kubernetes

1 messages · Page 1 of 1 (latest)

crisp anchor
#

Hi Everyone, I'm trying to configure github authentication in K8s by following documentation but having the error "Failed to sign-in, unable to resolve user identity", i don't know how to fix it. I already add the user in example/org.yaml, it's working in local but when I trying to push image in k8s, it's not working. What can I do in this situation?

**app-config.yaml **

`auth:

see https://backstage.io/docs/auth/ to learn about auth providers

providers:
github:
development:
clientId: ACCESS_KEY
clientSecret: SECRET_KEY
signIn:
resolvers:
- resolver: usernameMatchingUserEntityName`

App.tsx

import { githubAuthApiRef } from '@backstage/core-plugin-api';

const app = createApp({
apis,
components: {
SignInPage: props => (
<SignInPage
{...props}
auto
provider={{
id: 'github-auth-provider',
title: 'GitHub',
message: 'Sign in using GitHub',
apiRef: githubAuthApiRef,
}}
/>
)
},

org.yaml


apiVersion: backstage.io/v1alpha1
kind: User
metadata:
name: taihnc
spec:
memberOf: [guests]

apiVersion: backstage.io/v1alpha1
kind: Group
metadata:
name: guests
spec:
type: team
children: []

#

@graceful perch could you take a look for this case? I'm appreciate it.

gleaming shadow
#

Hello! I ran into the same problem. The configuration is the same as yours. Only I am running in a docker container. Dear community. Share your experience, tell me what I'm doing wrong.