MCPcopy Index your code
hub / github.com/curityio/cloud-native-oauth-security-examples

github.com/curityio/cloud-native-oauth-security-examples @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
487 symbols 931 edges 189 files 11 documented · 2%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Cloud Native Data Security with OAuth

Apache 2.0 License

This repository complements the book Cloud Native Data Security with OAuth by Gary Archer, Judith Kahrer and Michał Trojanowski.\ It provides several code examples that showcase the ideas and recommendations outlined in the various chapters of the book.

The code examples run on any of the following desktop platforms:

  • macOS
  • Windows (with a Linux shell such as Git bash)
  • Linux

List of Examples

The examples show how to implement the designs described in the book's written text:

Authorization Server

Deployments default to using the community edition of the Curity Identity Server.\ Alternatively, you could adapt deployments to use your preferred authorization server.

License

This project is copyright © 2024 Curity AB. It is licensed under the Apache v. 2.

Extension points exported contracts — how you extend this code

Authorizer (Interface)
(no doc) [4 implementers]
chapter-05-secure-api-development/src/security/authorizer.ts
AuthorizationResponse (Interface)
(no doc)
chapter-12-platform-specific-apps/console-app/src/oauth/authorizationResponse.ts
ApiOptions (Interface)
(no doc)
chapter-12-platform-specific-apps/desktop-app/src/renderer/apiOptions.ts
Customer (Interface)
(no doc)
chapter-04-scim-user-migration/src/customer.ts
ClientOptions (Interface)
(no doc)
chapter-13-browser-based-apps/backend-for-frontend/oauth-agent/src/lib/clientOptions.ts
Configuration (Interface)
(no doc)
chapter-13-browser-based-apps/browser-based-application/src/configuration.ts
OrderSummary (Interface)
(no doc)
chapter-05-secure-api-development/src/entities/orderSummary.ts
TokenResponse (Interface)
(no doc)
chapter-12-platform-specific-apps/console-app/src/oauth/tokenResponse.ts

Core symbols most depended-on inside this repo

toString
called by 23
chapter-12-platform-specific-apps/android-app/app/src/main/java/com/example/demoapp/ApplicationError.kt
issueMockAccessToken
called by 13
chapter-05-secure-api-development/test/mockAuthorizationServer.ts
onLoggedOut
called by 9
chapter-12-platform-specific-apps/android-app/app/src/main/java/com/example/demoapp/MainActivityViewModel.kt
getOrders
called by 9
chapter-05-secure-api-development/test/apiClient.ts
getValue
called by 8
chapter-05-secure-api-development/src/configuration.ts
_addField
called by 8
chapter-13-browser-based-apps/backend-for-frontend/oauth-agent/src/middleware/requestLog.ts
getCookieSerializeOptions
called by 8
chapter-13-browser-based-apps/backend-for-frontend/oauth-agent/src/lib/cookieBuilder.ts
TextOnColor
called by 7
chapter-12-platform-specific-apps/android-app/app/src/main/java/com/example/demoapp/utilities/TextOnColor.kt

Shape

Method 215
Class 130
Function 105
Interface 36
Enum 1

Languages

TypeScript83%
Kotlin17%

Modules by API surface

chapter-12-platform-specific-apps/android-app/app/src/main/java/com/example/demoapp/oauth/OAuthClient.kt17 symbols
chapter-12-platform-specific-apps/desktop-app/src/main/oauth/oauthClient.ts13 symbols
chapter-12-platform-specific-apps/desktop-app/src/main/ipcRequestHandler.ts12 symbols
chapter-13-browser-based-apps/browser-based-application/src/oauth/oauthClient.ts11 symbols
chapter-04-scim-user-migration/src/scimClient.ts9 symbols
chapter-12-platform-specific-apps/android-app/app/src/main/java/com/example/demoapp/api/ApiClient.kt8 symbols
chapter-12-platform-specific-apps/android-app/app/src/main/java/com/example/demoapp/MainActivityViewModel.kt8 symbols
chapter-05-secure-api-development/src/security/rolePermissions.ts8 symbols
chapter-13-browser-based-apps/browser-based-application/src/utilities/multiTabLogout.ts7 symbols
chapter-13-browser-based-apps/browser-based-application/src/utilities/applicationError.ts7 symbols
chapter-13-browser-based-apps/browser-based-application/src/api/apiClient.ts7 symbols
chapter-13-browser-based-apps/backend-for-frontend/oauth-agent/src/middleware/requestLog.ts7 symbols

Datastores touched

productsDatabase · 1 repos
idsvrDatabase · 1 repos

For agents

$ claude mcp add cloud-native-oauth-security-examples \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact