authutil

package
v1.7.0-pre.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: Apache-2.0, CC-BY-4.0, MIT Imports: 4 Imported by: 0

Documentation

Overview

Copyright 2026 The Go MCP SDK Authors. All rights reserved. Use of this source code is governed by the license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IssuersEqual

func IssuersEqual(a, b string) bool

IssuersEqual reports whether two OAuth 2.0 authorization server issuer identifiers refer to the same server comparing them without the final trailing slash.

func ScopesFromToken

func ScopesFromToken(token *oauth2.Token) []string

ScopesFromToken extracts the granted scopes from an OAuth2 token response. Per RFC 6749 §5.1, the scope parameter is optional; returns nil if absent.

func UnionScopes

func UnionScopes(existing, challenged []string) []string

UnionScopes returns the union of the existing and challenged scope sets. It is used during step-up authorization to accumulate scopes across authorization rounds (SEP-2350).

Types

This section is empty.

Jump to

Keyboard shortcuts

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