idtoken

package
v0.1.0-alpha.9 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package idtoken holds the OpenID Connect ID-token claim contract shared by the provider sign-in plugins, so provider sign-in and organization SSO accept exactly the same tokens.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(id *oidc.IDToken, accessToken, issuer, clientID, nonce string, now time.Time) bool

Check applies the claims go-oidc does not: the exact issuer, a bounded subject, the transaction nonce, a plausible issue time, the authorized party of a multi-audience token and, when present, the access-token hash. Call it only on a token go-oidc verified (signature, algorithm, audience, expiry).

func ValidSubject

func ValidSubject(s string) bool

ValidSubject bounds a provider subject stored as an external identity.

Types

This section is empty.

Jump to

Keyboard shortcuts

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