Skip to content

Commit

Permalink
identity: improve the documentation for Principal.Name()
Browse files Browse the repository at this point in the history
Clarify that the must match proof of possession

Signed-off-by: Nathan Smith <nathan@chainguard.dev>
  • Loading branch information
Nathan Smith committed May 12, 2022
1 parent 8d307b5 commit 3b7c790
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/identity/principal.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ import (
)

type Principal interface {
// URI, email etc of principal
// Name is the email or subject of OIDC ID token. This value must match the
// value signed in the proof of private key possession challenge.
Name(ctx context.Context) string

// Embed all SubjectAltName and custom x509 extension information into
Expand Down

0 comments on commit 3b7c790

Please sign in to comment.