type

AuthStrategyResult

Result of one custom authentication strategy.

Properties

PropertyTypeDescription
AuthenticatedboolReports whether this strategy recognized and authenticated the request.
UserIDstringIdentifies the matched user in the strategy’s auth collection.

How it works

An authenticated result must supply UserID. A false result means “not applicable,” allowing the next strategy to run.

Full signature

type AuthStrategyResult struct { Authenticated bool UserID string }

Source core/auth_contract.go:87