Skip to content

OxAuth Certification

Milton Ch edited this page Mar 12, 2023 · 3 revisions

1. Previous steps for certification.

In order to certify, some modifications must be made to the configuration.

1.1. Adding and enabling of custom scripts for client registration.

The trustedClient and includeClaimsInIdToken fields must be initialized to true.

img

Be sure to activate the custom script, as it says in point 4.

img_12

This is the custom script to add.

from org.gluu.model.custom.script.type.client import ClientRegistrationType
import java

class ClientRegistration(ClientRegistrationType):
    
    def __init__(self, currentTimeMillis):
        self.currentTimeMillis = currentTimeMillis

    def init(self, customScript, configurationAttributes):
        print "Client registration. Initialization"
        print "Client registration. Initialized successfully"
        return True   

    def destroy(self, configurationAttributes):
        print "Client registration. Destroy"
        print "Client registration. Destroyed successfully"
        return True   
    
    def createClient(self, registerRequest, client, configurationAttributes):
        print "Client registration. CreateClient method"
        client.setTrustedClient(True);
        client.setIncludeClaimsInIdToken(True);
        print "Client registration. Set True in TrustedClient and IncludeClaimsInIdToken"
        return True

    def updateClient(self, registerRequest, client, configurationAttributes):
        print "Client registration. UpdateClient method"
        return True

    def getApiVersion(self):
        return 11

    def getSoftwareStatementHmacSecret(self, context):
        return ""

    def getSoftwareStatementJwks(self, context):
        return ""

Once added, it should look like the following image.

img_3

1.2. Create a test person with all the necessary data required for certification.

A test person must be created for use in certification testing.

img_10

Data to be entered:

Username:                   test_user
First Name:                 Gluu
Display Name:               Gluu Test User
Last Name:                  Test User
Email:                      test_user@test.org
Password:                   test_user_password
Confirm Password:           test_user_password
User Status:                active
Birthdate:                  06.01.1983
Country:                    US
Email Verified:             True
Gender:                     male
Last Updated:               2023-03-06 12:30:00
Locale:                     en-US
Middle Name:                Test
Nickname:                   test_user
Organization:               Gluu, Inc.
Phone Number Verified:      True
Picture URL:                http://www.jans.org/wp-content/uploads/2012/04/mike3.png
Preferred Language:         en_US
Preferred Username:         test_user
Profile URL:                http://www.mywebsite.com/profile
Time zone info:             America/Chicago
Website URL:                https://gluu.org
Home Telephone:             (512) 516-2413
Mobile Telephone Number:    (512) 516-2413

1.3. OxAuth Configuration

To configure OxAuth you must go to this section as shown in the image:

img_11

And when you finish your configuration, proceed to save your changes by clicking on the Save Configuration button:

img_13

1.3.1. Set rejectJwtWithNoneAlg to false.

img_15

1.3.2. Set defaultSubjectType to public.

IMPORTANT NOTE: This configuration should only be applied for the test case: Dynamic OP (oidcc-dynamic-certification-test-plan) -> oidcc-ensure-redirect-uri-in-authorization-request.

img_16

1.4. Enable by default the following scopes.

To enable a default scope, you must search for the scope and set the Default scope field to true and update by pressing the Update button, as shown in the following image:

img_14

The scopes that must be enabled by default are:

  • profile
  • email
  • address
  • phone

1.5. Key Rotation Test Case.

img_17

To rotate the keys you can use the following script: Key Regeneration Script

2. Certification report 2023-03

2.1. Issues resolved.

During this certification process, the following issues were found:

2.2. Certified profiles.

The profiles that were certified were:

Clone this wiki locally