downstreamsession

package
v0.35.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package downstreamsession provides some shared helpers for creating downstream OIDC sessions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoApproveScopes

func AutoApproveScopes(authorizeRequester fosite.AuthorizeRequester)

AutoApproveScopes auto-grants the scopes which we support and for which we do not require end-user approval, if they were requested. This should only be called after it has been validated that the client is allowed to request the scopes that it requested (which is a check performed by fosite).

func NewPinnipedSession added in v0.29.0

NewPinnipedSession applies the configured FederationDomain identity transformations and creates a downstream Pinniped session.

Types

type SessionConfig added in v0.29.0

type SessionConfig struct {
	UpstreamIdentity    *resolvedprovider.Identity
	UpstreamLoginExtras *resolvedprovider.IdentityLoginExtras
	// The ID of the client who started the new downstream session.
	ClientID string
	// The scopes that were granted for the new downstream session.
	GrantedScopes []string
}

SessionConfig is everything that is needed to start a new downstream Pinniped session, including the upstream and downstream identities of the user. All fields are required.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL