MCPcopy Create free account
hub / github.com/auth0/auth0-cli / makeApplicationView

Function makeApplicationView

internal/display/apps.go:212–237  ·  view source on GitHub ↗
(client *management.Client, revealSecrets bool)

Source from the content-addressed store, hash-verified

210}
211
212func makeApplicationView(client *management.Client, revealSecrets bool) *applicationView {
213 jsonRefreshToken, _ := json.Marshal(client.GetRefreshToken())
214
215 return &applicationView{
216 revealSecret: revealSecrets,
217 Name: client.GetName(),
218 Description: client.GetDescription(),
219 Type: FriendlyAppType(client.GetAppType()),
220 ClientID: client.GetClientID(),
221 ClientSecret: client.GetClientSecret(),
222 Callbacks: client.GetCallbacks(),
223 AllowedOrigins: client.GetAllowedOrigins(),
224 AllowedWebOrigins: client.GetWebOrigins(),
225 AllowedLogoutURLs: client.GetAllowedLogoutURLs(),
226 AuthMethod: client.GetTokenEndpointAuthMethod(),
227 Grants: client.GetGrantTypes(),
228 Metadata: mapPointerToArray(client.ClientMetadata),
229 ResourceServerIdentifier: client.GetResourceServerIdentifier(),
230 AllowAnyProfileOfType: client.GetTokenExchange().GetAllowAnyProfileOfType(),
231 IsFirstParty: client.IsFirstParty,
232 ThirdPartySecurityMode: client.GetThirdPartySecurityMode(),
233 RedirectionPolicy: client.GetRedirectionPolicy(),
234 raw: client,
235 RefreshToken: string(jsonRefreshToken),
236 }
237}
238
239func FriendlyAppType(appType string) string {
240 switch appType {

Callers 4

ApplicationListMethod · 0.85
ApplicationShowMethod · 0.85
ApplicationCreateMethod · 0.85
ApplicationUpdateMethod · 0.85

Calls 3

FriendlyAppTypeFunction · 0.85
mapPointerToArrayFunction · 0.85
GetNameMethod · 0.65

Tested by

no test coverage detected