GithubHelp home page GithubHelp logo

Comments (5)

joariasl avatar joariasl commented on June 12, 2024 1

This error also occurs when you don't have the User kind populated in the catalog. Don't forget add the githubOrg (Groups, Users) provider additional to the github provider (Repositories).

To avoid the undefined email problem with users with private addresses, invert the resolver evaluation to match the username first and the email after in the auth.providers.github.<env>

resolvers:
  - resolver: usernameMatchingUserEntityName
  - resolver: emailMatchingUserEntityProfileEmail
  - resolver: emailLocalPartMatchingUserEntityName

from backstage.

twanbeeren avatar twanbeeren commented on June 12, 2024

Do you need to set a profile.email?

Like so

apiVersion: backstage.io/v1alpha1
kind: User
metadata:
  name: tbeeren
spec:
  profile:
    displayName: TwanBeeren
    email: [email protected]
  memberOf: [guests]

Maybe this helps

from backstage.

sanathlokanath1991 avatar sanathlokanath1991 commented on June 12, 2024

Even after modifying this still the same issue. Can you helps me with further investigation. Due to this we are unable to proceed further implimentation

from backstage.

vinzscam avatar vinzscam commented on June 12, 2024

please remove the first 2 resolvers and keep only usernameMatchingUserEntityName:

        signIn:
          resolvers:
            - resolver: usernameMatchingUserEntityName

you need to pick the resolver that makes sense for your use case as described in https://backstage.io/docs/auth/github/provider/#configuration. Since the resolvers are used in order, emailMatchingUserEntityProfileEmail was the first one used, which requires the email of your users to be ingested in the users entities.

I've opened #24726. I hope it clarifies things.

from backstage.

joariasl avatar joariasl commented on June 12, 2024

The problem appears when a GitHub don't have configured the public email in his profile and his emails are marked as "Keep my email addresses private".
I've seen that setting up a GitHub App.

To solve that the user need:

  1. Go to configure Public profile and select a "Public email". Save changes

  2. If the email is not selected and you se the alert "You have set your email address to private. To toggle email privacy, go to email settings and uncheck "Keep my email address private.""
    Go to email settings and uncheck option "Keep my email addresses private".

    image

Probably exists a different method con configure Backstage to match the private emails.

from backstage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.