MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / newMockAuthServer

Function newMockAuthServer

rest/oidc_api_test.go:163–170  ·  view source on GitHub ↗

The newMockAuthServer returns a new mock OAuth Server but doesn't start it. The caller should call Start when needed, to start it up.

()

Source from the content-addressed store, hash-verified

161// The newMockAuthServer returns a new mock OAuth Server but doesn't start it.
162// The caller should call Start when needed, to start it up.
163func newMockAuthServer() (*mockAuthServer, error) {
164 server := new(mockAuthServer)
165 if err := server.setupSignerWithKeys(); err != nil {
166 return nil, err
167 }
168 server.options = new(options)
169 return server, nil
170}
171
172// setupSignerWithKeys sets up an RSA signer to sign the token and a set of public keys in JWK format
173// that enable clients to validate a JSON Web Token (JWT) issued by this OpenID Connect Provider.

Calls 1

setupSignerWithKeysMethod · 0.80

Tested by

no test coverage detected