Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/curityio/cloud-native-oauth-security-examples
/ functions
Functions
320 in github.com/curityio/cloud-native-oauth-security-examples
⨍
Functions
320
◇
Types & classes
167
↓ 23 callers
Method
toString
chapter-12-platform-specific-apps/android-app/app/src/main/java/com/example/demoapp/ApplicationError.kt:27
↓ 13 callers
Method
issueMockAccessToken
( properties: TokenProperties, maliciousKeypair: GenerateKeyPairResult<KeyLike> | null = null)
chapter-05-secure-api-development/test/mockAuthorizationServer.ts:62
↓ 9 callers
Method
getOrders
(accessToken: string)
chapter-05-secure-api-development/test/apiClient.ts:27
↓ 9 callers
Method
onLoggedOut
chapter-12-platform-specific-apps/android-app/app/src/main/java/com/example/demoapp/MainActivityViewModel.kt:100
↓ 8 callers
Method
_addField
(fields: string[], value?: string)
chapter-13-browser-based-apps/backend-for-frontend/oauth-agent/src/middleware/requestLog.ts:92
↓ 8 callers
Function
getCookieSerializeOptions
(config: OAuthAgentConfiguration, type: string)
chapter-13-browser-based-apps/backend-for-frontend/oauth-agent/src/lib/cookieBuilder.ts:83
↓ 8 callers
Method
getValue
(name: string, defaultValue = '')
chapter-05-secure-api-development/src/configuration.ts:48
↓ 7 callers
Function
TextHeading
chapter-12-platform-specific-apps/android-app/app/src/main/java/com/example/demoapp/utilities/TextHeading.kt:29
↓ 7 callers
Function
TextOnColor
chapter-12-platform-specific-apps/android-app/app/src/main/java/com/example/demoapp/utilities/TextOnColor.kt:35
↓ 7 callers
Function
TextParagraph
chapter-12-platform-specific-apps/android-app/app/src/main/java/com/example/demoapp/utilities/TextParagraph.kt:29
↓ 7 callers
Method
end
(response: Response)
chapter-13-browser-based-apps/backend-for-frontend/oauth-agent/src/middleware/requestLog.ts:39
↓ 6 callers
Method
getClaim
(claims: JWTPayload, name: string, required = true)
chapter-05-secure-api-development/src/security/claimsPrincipal.ts:60
↓ 6 callers
Method
handleOperation
(event: IpcMainInvokeEvent, action: () => Promise<any>)
chapter-12-platform-specific-apps/desktop-app/src/main/ipcRequestHandler.ts:118
↓ 6 callers
Function
ipcRequest
(name: string, requestData: any = {})
chapter-12-platform-specific-apps/desktop-app/src/renderer/ipcRequest.ts:23
↓ 5 callers
Method
fetch
(method: string, path: string, body: any = null)
chapter-13-browser-based-apps/browser-based-application/src/oauth/oauthClient.ts:103
↓ 5 callers
Function
getErrorText
(error: any)
chapter-12-platform-specific-apps/desktop-app/src/renderer/errorUtil.ts:25
↓ 5 callers
Function
getIDCookieName
(cookieNamePrefix: string)
chapter-13-browser-based-apps/backend-for-frontend/oauth-agent/src/lib/cookieName.ts:20
↓ 5 callers
Method
getOrderDetails
(id: string, accessToken: string)
chapter-05-secure-api-development/test/apiClient.ts:31
↓ 5 callers
Method
toDisplayFormat
(error: any)
chapter-13-browser-based-apps/browser-based-application/src/utilities/errorRenderer.ts:21
↓ 5 callers
Function
validateExpressRequest
(req: express.Request)
chapter-13-browser-based-apps/backend-for-frontend/oauth-agent/src/validateExpressRequest.ts:20
↓ 4 callers
Function
CustomButton
chapter-12-platform-specific-apps/android-app/app/src/main/java/com/example/demoapp/utilities/CustomButton.kt:30
↓ 4 callers
Method
_scimRequest
(method: string, path: string = '', data: any = null)
chapter-04-scim-user-migration/src/scimClient.ts:161
↓ 4 callers
Method
encode
(input: Buffer)
chapter-13-browser-based-apps/backend-for-frontend/oauth-agent/src/lib/base64url.ts:6
↓ 4 callers
Method
isPermissionInRoles
(accessTokenRoles: string[], predicate: (permissions: any) => boolean)
chapter-05-secure-api-development/src/security/rolePermissions.ts:49
↓ 4 callers
Method
isSessionExpiredError
()
chapter-13-browser-based-apps/browser-based-application/src/utilities/applicationError.ts:50
↓ 4 callers
Function
onLoggedOut
()
chapter-13-browser-based-apps/browser-based-application/src/views/app/app.tsx:73
↓ 3 callers
Method
_handleError
(e: any)
chapter-04-scim-user-migration/src/scimClient.ts:189
↓ 3 callers
Method
authenticate
()
chapter-04-scim-user-migration/src/tokenClient.ts:35
↓ 3 callers
Method
callAuthorizationServer
( operation: string, method: string, url: string, requestData: any = null)
chapter-12-platform-specific-apps/desktop-app/src/main/oauth/oauthClient.ts:240
↓ 3 callers
Method
callPolicyEngine
(action: String, type: String, order?: OrderDetails)
chapter-05-secure-api-development/src/security/policyAuthorizer.ts:67
↓ 3 callers
Method
canListOrdersForRegionalUsers
()
chapter-05-secure-api-development/src/security/authorizer.ts:27
↓ 3 callers
Function
decryptCookie
(encKeyHex: string, encryptedbase64value: string)
chapter-13-browser-based-apps/backend-for-frontend/oauth-agent/src/lib/cookieEncrypter.ts:43
↓ 3 callers
Method
getDetails
()
chapter-04-scim-user-migration/src/migrationError.ts:29
↓ 3 callers
Function
getEncryptedCookie
(options: SerializeOptions, value: string, name: string, encKey: string)
chapter-13-browser-based-apps/backend-for-frontend/oauth-agent/src/lib/cookieEncrypter.ts:80
↓ 3 callers
Function
getRTCookieName
(cookieNamePrefix: string)
chapter-13-browser-based-apps/backend-for-frontend/oauth-agent/src/lib/cookieName.ts:18
↓ 3 callers
Function
getTempLoginDataCookieName
(cookieNamePrefix: string)
chapter-13-browser-based-apps/backend-for-frontend/oauth-agent/src/lib/cookieName.ts:17
↓ 3 callers
Method
sendAndGetJson
chapter-12-platform-specific-apps/android-app/app/src/main/java/com/example/demoapp/oauth/OAuthClient.kt:224
↓ 2 callers
Method
addError
(error: OAuthAgentException)
chapter-13-browser-based-apps/backend-for-frontend/oauth-agent/src/middleware/requestLog.ts:35
↓ 2 callers
Function
callApi
(options: ApiOptions)
chapter-12-platform-specific-apps/desktop-app/src/renderer/apiRequest.ts:70
↓ 2 callers
Method
callApi
(url: string)
chapter-12-platform-specific-apps/desktop-app/src/main/apiClient.ts:51
↓ 2 callers
Method
callApi
(method: string, path: string, accessToken: string)
chapter-05-secure-api-development/test/apiClient.ts:35
↓ 2 callers
Method
canOwnOrders
(accessTokenRoles: string[])
chapter-05-secure-api-development/src/security/rolePermissions.ts:33
↓ 2 callers
Method
clear
chapter-12-platform-specific-apps/android-app/app/src/main/java/com/example/demoapp/views/CallApiViewModel.kt:68
↓ 2 callers
Function
createWindow
()
chapter-12-platform-specific-apps/desktop-app/src/main.ts:33
↓ 2 callers
Method
decode
(input: string)
chapter-13-browser-based-apps/backend-for-frontend/oauth-agent/src/lib/base64url.ts:14
↓ 2 callers
Function
encryptCookie
(encKeyHex: string, plaintext: string)
chapter-13-browser-based-apps/backend-for-frontend/oauth-agent/src/lib/cookieEncrypter.ts:25
↓ 2 callers
Method
fetch
(method: string, url: string)
chapter-13-browser-based-apps/browser-based-application/src/api/apiClient.ts:59
↓ 2 callers
Method
fetchImpl
(method: string, url: string)
chapter-13-browser-based-apps/browser-based-application/src/api/apiClient.ts:93
↓ 2 callers
Function
generateRandomString
()
chapter-12-platform-specific-apps/console-app/src/oauth/cryptoUtils.ts:19
↓ 2 callers
Function
generateRandomString
chapter-12-platform-specific-apps/android-app/app/src/main/java/com/example/demoapp/oauth/CryptoUtils.kt:23
↓ 2 callers
Function
generateRandomString
()
chapter-12-platform-specific-apps/desktop-app/src/main/oauth/cryptoUtils.ts:19
↓ 2 callers
Function
generateRandomString
(length = 64)
chapter-13-browser-based-apps/backend-for-frontend/oauth-agent/src/lib/pkce.ts:25
↓ 2 callers
Function
getATCookieName
(cookieNamePrefix: string)
chapter-13-browser-based-apps/backend-for-frontend/oauth-agent/src/lib/cookieName.ts:19
↓ 2 callers
Function
getCookiesForTokenResponse
(tokenResponse: any, config: OAuthAgentConfiguration, unsetTempLoginDataCookie: boolean = false)
chapter-13-browser-based-apps/backend-for-frontend/oauth-agent/src/lib/cookieBuilder.ts:26
↓ 2 callers
Function
getCookiesForUnset
(config: OAuthAgentConfiguration)
chapter-13-browser-based-apps/backend-for-frontend/oauth-agent/src/lib/cookieBuilder.ts:58
↓ 2 callers
Function
getDataFromApi
(url: string, accessToken: string)
chapter-12-platform-specific-apps/console-app/src/apiClient.ts:38
↓ 2 callers
Method
getDataFromApi
chapter-12-platform-specific-apps/android-app/app/src/main/java/com/example/demoapp/api/ApiClient.kt:74
↓ 2 callers
Function
getIDTokenClaimsFromCookie
(encKey: string, encryptedCookie: string)
chapter-13-browser-based-apps/backend-for-frontend/oauth-agent/src/lib/getIDTokenClaims.ts:20
↓ 2 callers
Method
handleApiError
(e: any)
chapter-13-browser-based-apps/browser-based-application/src/utilities/errorHandler.ts:21
↓ 2 callers
Method
handleFetchError
(type: string, codeParam: string, e: any)
chapter-13-browser-based-apps/browser-based-application/src/utilities/errorHandler.ts:32
↓ 2 callers
Method
load
()
chapter-05-secure-api-development/src/logic/ordersRepository.ts:33
↓ 2 callers
Method
lookupExistingUserId
(customer: Customer)
chapter-04-scim-user-migration/src/scimClient.ts:139
↓ 2 callers
Function
makeApiRequest
(options: ApiOptions)
chapter-12-platform-specific-apps/desktop-app/src/renderer/apiRequest.ts:35
↓ 2 callers
Method
makeApiRequestWithExpiryHandling
chapter-12-platform-specific-apps/android-app/app/src/main/java/com/example/demoapp/api/ApiClient.kt:45
↓ 2 callers
Method
start
(request: Request)
chapter-13-browser-based-apps/backend-for-frontend/oauth-agent/src/middleware/requestLog.ts:28
↓ 2 callers
Method
stop
()
chapter-12-platform-specific-apps/console-app/src/oauth/loginRequestResponse.ts:94
↓ 2 callers
Method
stop
()
chapter-12-platform-specific-apps/desktop-app/src/main/oauth/loginRequestResponse.ts:101
↓ 2 callers
Method
toDisplayFormat
()
chapter-12-platform-specific-apps/desktop-app/src/shared/applicationError.ts:39
↓ 2 callers
Function
urlEncode
(data: string)
chapter-12-platform-specific-apps/console-app/src/oauth/cryptoUtils.ts:31
↓ 2 callers
Function
urlEncode
(data: string)
chapter-12-platform-specific-apps/desktop-app/src/main/oauth/cryptoUtils.ts:31
↓ 2 callers
Method
validateIdToken
chapter-12-platform-specific-apps/android-app/app/src/main/java/com/example/demoapp/oauth/OAuthClient.kt:197
↓ 2 callers
Method
writeErrorResponse
(apiError: ApiError, response: Response)
chapter-05-secure-api-development/src/errors/errorHandler.ts:37
↓ 1 callers
Function
CallApiView
chapter-12-platform-specific-apps/android-app/app/src/main/java/com/example/demoapp/views/CallApiView.kt:32
↓ 1 callers
Function
ClaimsView
chapter-12-platform-specific-apps/android-app/app/src/main/java/com/example/demoapp/views/ClaimsView.kt:33
↓ 1 callers
Function
DemoAppTheme
chapter-12-platform-specific-apps/android-app/app/src/main/java/com/example/demoapp/DemoAppTheme.kt:27
↓ 1 callers
Function
PageLoadView
chapter-12-platform-specific-apps/android-app/app/src/main/java/com/example/demoapp/views/PageLoadView.kt:32
↓ 1 callers
Function
SignInView
chapter-12-platform-specific-apps/android-app/app/src/main/java/com/example/demoapp/views/SignInView.kt:30
↓ 1 callers
Function
SignOutView
chapter-12-platform-specific-apps/android-app/app/src/main/java/com/example/demoapp/views/SignOutView.kt:27
↓ 1 callers
Function
TitleView
chapter-12-platform-specific-apps/android-app/app/src/main/java/com/example/demoapp/views/TitleView.kt:31
↓ 1 callers
Function
UserInfoView
chapter-12-platform-specific-apps/android-app/app/src/main/java/com/example/demoapp/views/UserInfoView.kt:32
↓ 1 callers
Method
_handleError
(e: any)
chapter-04-scim-user-migration/src/tokenClient.ts:67
↓ 1 callers
Method
_output
()
chapter-13-browser-based-apps/backend-for-frontend/oauth-agent/src/middleware/requestLog.ts:45
↓ 1 callers
Function
base64UrlEncode
(hashedData: string)
chapter-13-browser-based-apps/backend-for-frontend/oauth-agent/src/lib/pkce.ts:40
↓ 1 callers
Function
buildAuthorizationRequestUrl
( state: string, codeChallenge: string, redirectUri: string)
chapter-12-platform-specific-apps/console-app/src/oauth/oauthClient.ts:65
↓ 1 callers
Method
buildAuthorizationRequestUrl
chapter-12-platform-specific-apps/android-app/app/src/main/java/com/example/demoapp/oauth/OAuthClient.kt:143
↓ 1 callers
Method
buildAuthorizationRequestUrl
(state: string, codeChallenge: string, redirectUri: string)
chapter-12-platform-specific-apps/desktop-app/src/main/oauth/oauthClient.ts:148
↓ 1 callers
Method
canListOwnedOrders
()
chapter-05-secure-api-development/src/security/authorizer.ts:29
↓ 1 callers
Method
canViewOrder
(orderId: OrderDetails)
chapter-05-secure-api-development/src/security/authorizer.ts:25
↓ 1 callers
Function
cleanup
()
chapter-13-browser-based-apps/browser-based-application/src/views/app/app.tsx:66
↓ 1 callers
Function
createAuthorizationRequest
(config: OAuthAgentConfiguration, options?: ClientOptions)
chapter-13-browser-based-apps/backend-for-frontend/oauth-agent/src/lib/loginHandler.ts:23
↓ 1 callers
Method
createCodeAuthorizer
(claims: ClaimsPrincipal)
chapter-05-secure-api-development/src/logic/objectFactory.ts:61
↓ 1 callers
Method
createPolicyAuthorizer
(configuration: Configuration, accessToken: string)
chapter-05-secure-api-development/src/logic/objectFactory.ts:68
↓ 1 callers
Method
createViews
chapter-12-platform-specific-apps/android-app/app/src/main/java/com/example/demoapp/MainActivity.kt:66
↓ 1 callers
Method
deleteUser
(customer: Customer)
chapter-04-scim-user-migration/src/scimClient.ts:125
↓ 1 callers
Method
downloadOpenIDConnectMetadata
chapter-12-platform-specific-apps/android-app/app/src/main/java/com/example/demoapp/oauth/OAuthClient.kt:130
↓ 1 callers
Method
endLogin
chapter-12-platform-specific-apps/android-app/app/src/main/java/com/example/demoapp/oauth/OAuthClient.kt:84
↓ 1 callers
Method
endLogin
(pageUrl: string)
chapter-13-browser-based-apps/browser-based-application/src/oauth/oauthClient.ts:74
↓ 1 callers
Method
enforceRequiredScope
(requiredScope: string)
chapter-05-secure-api-development/src/security/claimsPrincipal.ts:42
↓ 1 callers
Function
execute
()
chapter-12-platform-specific-apps/desktop-app/src/renderer/pageLoad/pageLoadView.tsx:22
↓ 1 callers
Method
execute
(authorizationRequestUrl: string)
chapter-12-platform-specific-apps/desktop-app/src/main/oauth/loginRequestResponse.ts:58
next →
1–100 of 320, ranked by callers