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

Function externalUserName

rest/admin_api.go:1721–1726  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

1719}
1720
1721func externalUserName(name string) string {
1722 if name == "" {
1723 return base.GuestUsername
1724 }
1725 return name
1726}
1727
1728// marshalPrincipal outputs a PrincipalConfig in a format for REST API endpoints.
1729func marshalPrincipal(database *db.Database, princ auth.Principal, includeDynamicGrantInfo bool) (*auth.PrincipalConfig, error) {

Callers 1

marshalPrincipalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected