Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { *oauth2.Config DeviceEndpoint string // Audience value to be passed when requesting access token using device flow.This needs to be passed in the first request of the device flow currently and is configured in admin public client config.Required when auth server hasn't been configured with default audience"` Audience string }
Config oauth2.Config overridden with device endpoint for supporting Device Authorization Grant flow [RFC8268]
func BuildConfigFromMetadataService ¶
func BuildConfigFromMetadataService(ctx context.Context, authMetadataClient service.AuthMetadataServiceClient) (clientConf *Config, err error)
BuildConfigFromMetadataService builds OAuth2 config from information retrieved through the anonymous auth metadata service.
Click to show internal directories.
Click to hide internal directories.