tom-smith-okta / okta-api-center Goto Github PK
View Code? Open in Web Editor NEWGet up and running quickly with Okta's OAuth as a Service and your favorite API Gateway.
Get up and running quickly with Okta's OAuth as a Service and your favorite API Gateway.
Hi, @tom-smith-okta
I am from the Apache APISIX community.
The Apache APISIX also supports to use Okta as an authorization server, you can see the blog here: https://developer.okta.com/blog/2021/08/18/apache-apisix-gateway.
Cloud we add the Apache APISIX
into the gateway list?
Looking forward to your reply, thank you very much!
Got the following errors when trying to build the app:
Error: Cannot find module 'request'
Require stack:
- C:\okta-api-center-master\routes.js
- C:\okta-api-center-master\app.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (C:\okta-api-center-master\routes.js:8:15)
at Module._compile (node:internal/modules/cjs/loader:1103:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\okta-api-center-master\\routes.js',
'C:\\okta-api-center-master\\app.js'
]
}
Was able to work around this by adding the following dependency to packages.json:
"request": "^2.88.2"
I understand this obtains an access token from the OIDC handshake, which is then used as a bearer token to query the API.
If I wanted to query the API directly programmatically, not from web app, but from a batch job for example, how can I obtain an access token in that case?
thanks
The tutorial involves setting up custom authorization servers, but last I checked that's not a feature included by default in a lot of Okta subscriptions. It's part of the "API Access Management" package (see the banner at the top here: https://developer.okta.com/docs/concepts/auth-servers/)
If this is indeed the case, please add a warning or disclaimer to the guide. As a new user, it's very frustrating to spending hours looking for buttons that don't exist in the Okta UI.
If there is a way to do this tutorial (or at least to the extent of not implementing scoped access) without needing to buy extra add-on products, please let me know.
If it's easier - you can just use the JWKS url directly in Tyk instead of converting to a PEM!
Throw warnings or errors when params that the web app needs are missing.
Hello, our API Gateway is working with OKTA, but we do not know where can we check OKTA GROUPS. For example if the user has "group1" they will authorize, if not have group unauthorized.
HI, I am following instructions given in readme. When I reach to step to add plugin to route using given command
curl -i -X POST \
--url http://localhost:8001/services/solar-system/plugins/ \
--data 'name=openid-connect' \
--data 'route_id=85533238-8e8f-453c-ab9c-eaca583c5685' \
--data 'config.issuer=https://dev-840080.oktapreview.com/oauth2/axxn3xxxxxxxftl0h7' \
--data 'config.client_id=0oxxxxxxxxxxxx40h7' \
--data 'config.ssl_verify=false' \
--data 'config.cache_ttl=60' \
--data 'config.scopes_required=http://myapp.com/scp/silver' \
--data 'config.scopes_claim=scp'
It throws following exception:
HTTP/1.1 400 Bad Request
Date: Wed, 21 Aug 2019 05:20:13 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
Access-Control-Allow-Origin: *
X-Kong-Admin-Request-ID: ZEsssptj2RKW1h2jfsZBOLUKFyDJY7M8
Server: kong/0.36-enterprise-edition
Content-Length: 129
{"message":"schema violation (route_id: unknown field)","name":"schema violation","fields":{"route_id":"unknown field"},"code":2}
I am suspecting something has changed in recent kong version. If anyone have an idea, what is going wrong, please guide me>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.