MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / ToPattern

Method ToPattern

gateway/apinto/auth/oauth2.go:18–26  ·  view source on GitHub ↗
(cfg map[string]interface{})

Source from the content-addressed store, hash-verified

16 return "oauth2"
17}
18func (o *OAuth2) ToPattern(cfg map[string]interface{}) interface{} {
19 result := make(map[string]interface{})
20 result["client_id"] = cfg["client_id"]
21 result["client_secret"] = cfg["client_secret"]
22 result["client_type"] = cfg["client_type"]
23 result["hash_secret"] = cfg["hash_secret"]
24 result["redirect_urls"] = cfg["redirect_urls"]
25 return result
26}
27func (o *OAuth2) ToConfig(cfg map[string]interface{}) interface{} {
28 return nil
29}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected