Comments (9)
Hey @arvindkrishnakumar-okta , this is great news. I trust that this works, and will follow up when we attempt to implement this. Thank you very much for your help on this manner.
from okta-sdk-java.
@B-Iglesia Thanks for posting!
On double checking the Okta official API documentation for Policy at https://developer.okta.com/docs/reference/api/policy/#policy-object, I see that OAUTH_AUTHORIZATION_POLICY
is not listed anymore. This is the reason why the latest SDK does not contain this.
The present spec correctly lists all the policy types documented in the Okta offical API doc.
Let me know if you have followup questions.
from okta-sdk-java.
Hey @arvindkrishnakumar-okta , thanks for your response.
My main question is now surrounding authorization server
policies (https://developer.okta.com/docs/reference/api/authorization-servers/#policy-operations), and the policy
API that you sent me.
What is the distinct difference between them?
My follow up would be: what is SDK equivalent for creating a policy with an OAUTH_AUTHROIZATION_POLICY
policy type in the latest SDK? As I mentioned, we would like to be on the latest SDK.
// Code snippet of how we're currently putting policies together in v10.3.0 AuthorizationServerPolicy authorizationServerPolicy = new AuthorizationServerPolicy(); authorizationServerPolicy.setName(applicationName); authorizationServerPolicy.setDescription(POLICY_DESCRIPTION); authorizationServerPolicy.setType(**PolicyType.OAUTH_AUTHORIZATION_POLICY**); authorizationServerPolicy.setStatus(LifecycleStatus.ACTIVE); authorizationServerPolicy.setPriority(1); authorizationServerPolicy.setSystem(true);
from okta-sdk-java.
OAUTH_AUTHORIZATION_POLICY
is a string data type that should be used to set the type attribute of AuthorizationServerPolicy
object like your code snippet shows. However, this is NOT part of the PolicyType
that is publicly documented at https://developer.okta.com/docs/reference/api/policy/#policy-object. They both should not be correlated/confused with each other.
Please use the String type OAUTH_AUTHORIZATION_POLICY
when you work with AuthorizationServerPolicy
object.
Hope this clarifies.
from okta-sdk-java.
This clarifies a lot actually. Thank you. I was confused as in v10.3.0 OAUTH_AUTHORIZATION_POLICY
type it is in a PolicyType
enum.
Lastly, as a clarification, is this OAUTH_AUTHORIZATION_POLICY
part of an enum somewhere or would it suffice to just have a local private variable. Asking as v10.3.0 of .setType()
specifically requires a PolicyType
Enum
from okta-sdk-java.
@B-Iglesia I hear you and sorry for the confusion this has caused.
When 10.3.0 was released, the backend API team possibly had this PolicyType documented in the public facing API doc and that was why it was included as part of the spec that went into 10.3.0
The latest release 13.0.2, took into the fact that the value OAUTH_AUTHORIZATION_POLICY
was not publicly documented in API doc and hence was removed from the spec.
I'll double check with internal team that owns this API if this value needs to be added to the PolicyType
in the list of allowed policy types in public facing API docs.
from okta-sdk-java.
@B-Iglesia I'll get this value added back to PolicyType
enums in the spec and this change will get released as part of upcoming 14.0.0 release.
from okta-sdk-java.
Released 14.0.0 with the fix.
from okta-sdk-java.
This still not working since that in the version 14.0.0 we have the not the right PolicyType
from okta-sdk-java.
Related Issues (20)
- Null LinksSelf in VerifyUserFactorResponse HOT 1
- Missing "List groups assigned to application" HOT 5
- With 14.0.0 the application id is always null upon create HOT 2
- ClassNotFoundException with current dependencies in Gradle build HOT 4
- Okta Verify Fast Pass as an enrolled Factor is not returned HOT 8
- UserProfile equals() does not return true when objects are equal HOT 1
- Upgrade to 13.0.2 causes updateUser API to fail from attribute being mastered by a different system HOT 8
- `IdentityProviderApi` cannot properly deserialize `/ipds` responses HOT 1
- Create authorization server policy with type OAUTH_AUTHORIZATION_POLICY get error HOT 3
- IdP Discovery Policy not returned in listPolicyRules() HOT 2
- GroupsAPI - Custom group profile attributes missing HOT 3
- Several outdated dependencies
- OpenAPI spec missing some default role type HOT 3
- Invalid session HOT 3
- IdpPolicyRuleActionProvider needs the ability to set the provider id to be useful for creating IDP Routing Rules HOT 3
- Private Key is interpreted as PEMKeyPair instead of PrivateKeyInfo HOT 3
- Consistently thrown NoHttpResponseException's in 13.0.3 HOT 1
- UserApi#listUserGroups() doesn't support pagination HOT 3
- UserApi: listUserGroups() does not return more than 200 groups for a user HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from okta-sdk-java.