downstreamsession

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: Apache-2.0 Imports: 11 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 GetDownstreamIdentityFromUpstreamIDToken added in v0.11.0

func GetDownstreamIdentityFromUpstreamIDToken(
	upstreamIDPConfig provider.UpstreamOIDCIdentityProviderI,
	idTokenClaims map[string]interface{},
) (string, string, []string, error)

GetDownstreamIdentityFromUpstreamIDToken returns the mapped subject, username, and group names, in that order.

func GrantScopesIfRequested

func GrantScopesIfRequested(authorizeRequester fosite.AuthorizeRequester)

GrantScopesIfRequested auto-grants the scopes for which we do not require end-user approval, if they were requested.

func MakeDownstreamSession

func MakeDownstreamSession(subject string, username string, groups []string) *openid.DefaultSession

MakeDownstreamSession creates a downstream OIDC session.

Types

This section is empty.

Jump to

Keyboard shortcuts

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