Git Product home page Git Product logo

Comments (9)

B-Iglesia avatar B-Iglesia commented on July 1, 2024 1

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.

arvindkrishnakumar-okta avatar arvindkrishnakumar-okta commented on July 1, 2024

@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.

B-Iglesia avatar B-Iglesia commented on July 1, 2024

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.

arvindkrishnakumar-okta avatar arvindkrishnakumar-okta commented on July 1, 2024

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.

B-Iglesia avatar B-Iglesia commented on July 1, 2024

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.

arvindkrishnakumar-okta avatar arvindkrishnakumar-okta commented on July 1, 2024

@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.

arvindkrishnakumar-okta avatar arvindkrishnakumar-okta commented on July 1, 2024

@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.

arvindkrishnakumar-okta avatar arvindkrishnakumar-okta commented on July 1, 2024

Released 14.0.0 with the fix.

from okta-sdk-java.

jilds-wex avatar jilds-wex commented on July 1, 2024

This still not working since that in the version 14.0.0 we have the not the right PolicyType
image

from okta-sdk-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.