MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / ClientSecretMatches

Method ClientSecretMatches

pkg/oauth/storage.go:45–51  ·  view source on GitHub ↗
(secret string)

Source from the content-addressed store, hash-verified

43}
44
45func (cli osinClient) ClientSecretMatches(secret string) bool {
46 if cli.Secret == "" {
47 return secret == ""
48 }
49 valid, _ := auth.Validate(cli.Secret, secret)
50 return valid
51}
52
53func (cli osinClient) GetRedirectUri() string {
54 return strings.Join(cli.RedirectUris, redirectURISeparator)

Callers

nothing calls this directly

Calls 1

ValidateFunction · 0.92

Tested by

no test coverage detected