Skip to content

Filtering by Organization when using Github as an Oauth2 authentication provider #33608

@stevenwhayes

Description

@stevenwhayes

Feature Description

I am not sure if this is a feature request or bug report. I tried setting Required Claim Name and Required Claim Value to filter based on organization membership but nothing I tried worked. I am not sure if it is even supposed to work because there is no documentation around using these built in OAuth2 providers. Removing the Claim configuration allowed the OAuth2 login/registration to work but this is not a viable configuration for me. I also confirmed my Github OAuth2 application could provide a bearer token that had permission to return the proper membership via curl interaction with the Github API.

Should restricting login to users who have membership in specific Github organizations work out of the box? If not, can the feature be added? This seems like a fairly common use case. If it cannot be implemented can the docs around these OAuth2 providers be updated? I know this is a volunteer effort I would be willing to update the docs but I do not know what should work.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions