Skip to content

Commit

Permalink
OKTA-720638: Fix OASv3 spec - unable to access IdP links (#1519)
Browse files Browse the repository at this point in the history
* OKTA-720638: Fix OASv3 spec - unable to access IdP links

* Updated revision in pom.xml files
  • Loading branch information
arvindkrishnakumar-okta authored Jun 24, 2024
1 parent 9878b82 commit 12fcfe1
Show file tree
Hide file tree
Showing 10 changed files with 69 additions and 13 deletions.
2 changes: 1 addition & 1 deletion api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.okta.sdk</groupId>
<artifactId>okta-sdk-root</artifactId>
<version>17.0.1-SNAPSHOT</version>
<version>18.0.0-SNAPSHOT</version>
</parent>

<artifactId>okta-sdk-api</artifactId>
Expand Down
15 changes: 15 additions & 0 deletions api/src/main/java/com/okta/sdk/helper/PaginationUtil.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright 2024-Present Okta, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.okta.sdk.helper;

import com.okta.commons.lang.Assert;
Expand Down
2 changes: 1 addition & 1 deletion coverage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.okta.sdk</groupId>
<artifactId>okta-sdk-root</artifactId>
<version>17.0.1-SNAPSHOT</version>
<version>18.0.0-SNAPSHOT</version>
</parent>

<artifactId>okta-sdk-coverage</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.okta.sdk</groupId>
<artifactId>okta-sdk-root</artifactId>
<version>17.0.1-SNAPSHOT</version>
<version>18.0.0-SNAPSHOT</version>
</parent>

<artifactId>okta-sdk-examples</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/quickstart/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>com.okta.sdk</groupId>
<artifactId>okta-sdk-examples</artifactId>
<version>17.0.1-SNAPSHOT</version>
<version>18.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.okta.sdk</groupId>
<artifactId>okta-sdk-root</artifactId>
<version>17.0.1-SNAPSHOT</version>
<version>18.0.0-SNAPSHOT</version>
</parent>

<artifactId>okta-sdk-impl</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>com.okta.sdk</groupId>
<artifactId>okta-sdk-root</artifactId>
<version>17.0.1-SNAPSHOT</version>
<version>18.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,13 @@ class IdpIT extends ITSupport {
// retrieve
IdentityProvider retrievedIdp = identityProviderApi.getIdentityProvider(createdIdp.getId())
assertThat(retrievedIdp.getId(), equalTo(createdIdp.getId()))
assertThat(retrievedIdp.getLinks(), notNullValue())
assertThat(retrievedIdp.getLinks().getAuthorize(), notNullValue())
assertThat(retrievedIdp.getLinks().getAuthorize().getHints(), notNullValue())
assertThat(retrievedIdp.getLinks().getAuthorize().getHref(), notNullValue())
assertThat(retrievedIdp.getLinks().getClientRedirectUri(), notNullValue())
assertThat(retrievedIdp.getLinks().getClientRedirectUri().getHints(), notNullValue())
assertThat(retrievedIdp.getLinks().getClientRedirectUri().getHref(), notNullValue())

// update
String newName = "java-sdk-it-" + UUID.randomUUID().toString()
Expand Down
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

<groupId>com.okta.sdk</groupId>
<artifactId>okta-sdk-root</artifactId>
<version>17.0.1-SNAPSHOT</version>
<version>18.0.0-SNAPSHOT</version>
<packaging>pom</packaging>

<name>Okta Java SDK</name>
Expand Down Expand Up @@ -68,12 +68,12 @@
<dependency>
<groupId>com.okta.sdk</groupId>
<artifactId>okta-sdk-api</artifactId>
<version>17.0.1-SNAPSHOT</version>
<version>18.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.okta.sdk</groupId>
<artifactId>okta-sdk-impl</artifactId>
<version>17.0.1-SNAPSHOT</version>
<version>18.0.0-SNAPSHOT</version>
</dependency>

<!-- Other Okta Projects -->
Expand Down Expand Up @@ -103,14 +103,14 @@
<dependency>
<groupId>com.okta.sdk</groupId>
<artifactId>okta-sdk-integration-tests</artifactId>
<version>17.0.1-SNAPSHOT</version>
<version>18.0.0-SNAPSHOT</version>
</dependency>

<!-- Examples -->
<dependency>
<groupId>com.okta.sdk</groupId>
<artifactId>okta-sdk-examples-quickstart</artifactId>
<version>17.0.1-SNAPSHOT</version>
<version>18.0.0-SNAPSHOT</version>
</dependency>

<!-- Logging -->
Expand Down
38 changes: 36 additions & 2 deletions src/swagger/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26055,8 +26055,42 @@ components:
$ref: '#/components/schemas/IdentityProviderType'
_links:
type: object
additionalProperties:
$ref: '#/components/schemas/HrefObjectSelfLink'
additionalProperties: true
allOf:
- $ref: '#/components/schemas/LinksSelf'
- properties:
acs:
description: SAML 2.0 Assertion Consumer Service URL for the Okta SP
allOf:
- $ref: '#/components/schemas/HrefObject'
authorize:
description: OAuth 2.0 authorization endpoint for the IdP OAuth 2.0 Authorization Code flow
allOf:
- $ref: '#/components/schemas/HrefObject'
clientRedirectUri:
description: Redirect URI for the OAuth 2.0 Authorization Code flow
allOf:
- $ref: '#/components/schemas/HrefObject'
metadata:
description: 'Federation metadata document for the IdP (for example: SAML 2.0 Metadata)'
allOf:
- $ref: '#/components/schemas/HrefObject'
users:
description: IdP users
allOf:
- $ref: '#/components/schemas/HrefObject'
deactivate:
description: Deactivate IdP
allOf:
- $ref: '#/components/schemas/HrefObject'
activate:
description: Activate IdP
allOf:
- $ref: '#/components/schemas/HrefObject'
keys:
description: IdP keys
allOf:
- $ref: '#/components/schemas/HrefObject'
IdentityProviderApplicationUser:
type: object
properties:
Expand Down

0 comments on commit 12fcfe1

Please sign in to comment.