(client *management.Client, revealSecrets bool)
| 210 | } |
| 211 | |
| 212 | func 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 | |
| 239 | func FriendlyAppType(appType string) string { |
| 240 | switch appType { |
no test coverage detected