Skip to content

feature request : ability to overide discovery endpoint #439

@mcarbonneaux

Description

@mcarbonneaux

actualy the oidc client support only full discovery, but some time when you have dual exposition of your idp (internet and private), and if the client application are executed on private network you need to overide userinfo to go through private network to access to the idp.

in this case we need the ability to overide all the provider endpoint url.
like to add setter to all the discovered url after Provider initialisation.

like that:

       provider, err := oidc.NewProvider(ctx, issuerUrl)
       if err != nil {
		log.Fatal(err)
       }
       provider.setTokenURL("https://idp/mytokenurl")
       provider.setAuthURL("https://idp/myauthurl")
       provider.setUserInfoURL("https://idp/myuserinfourl")
       provider.setDeviceAuthURL("https://idp/mydeviceauthurl")
       provider.setJwksURL("https://idp/myjwksurl")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions