#!/bin/bash
#Global parameter file for OAUTH Automation

#General Configuration, Will Apply to all Flow until override in respective location
# System settings. UPDATE to reflect your setup.
username=vneeraj
password=netiq
user_email=vneeraj@netiq.com
userstore="edir-local"  #User Store Name
user_dn="cn%3D"$username"%2Co%3Dnovell" #user dn format
idpurl="https://sles12-acidp.labs.blr.novell.com:8443/"
scope_username="admin" #Non-developer user
scope_password="novell"
scope_email="admin@netiq.com"
# End of system settings

nonce=eRTEWVTBel2YSfWF
nonce1=test
loginurl="$idpurl"nidp/app/login?sid=0
redirect_uri=https://164.99.86.160/bajesh/oauth.php
resource_server_url="$idpurl""nidp/oauth/nam/resourceservers"
default_resource_server="$resource_server_url""/Identity%20Provider/scopes"
resource_server="Identity%20Provider"
resource_server_withResourceServerKeys="test%201"
resource_server_withNoEncryption="noEncrypt%20RS"
post_logout_redirect_uri="https://client.example.org/callback"
issuer="$idpurl""nidp/oauth/nam"

#Endpoint URL's
authcodeurl="$idpurl""nidp/oauth/nam/authz"
grant_url="$idpurl""nidp/oauth/nam/token"
ro_url="$idpurl""nidp/oauth/nam/token"
cc_url="$idpurl""nidp/oauth/nam/token"
client_url="$idpurl""nidp/oauth/nam/clients"
verifytoken="$idpurl""nidp/oauth/nam/tokeninfo"
userinfo="$idpurl""nidp/oauth/nam/userinfo"
revokeEP="$idpurl""nidp/oauth/nam/revoke"
metadata="$idpurl""nidp/oauth/nam/.well-known/openid-configuration"
keys="$idpurl""nidp/oauth/nam/keys"
endpoint_url="$idpurl""nidp/oauth/nam/account/authzClients/"
introspect="$idpurl""nidp/oauth/v1/nam/introspect"
session_endpoint="$idpurl""nidp/oauth/v1/nam/end_session"
logout_endpoint="$idpurl""nidp/app/logout"


#used for developer to register new client with scope
client_id_registered="nam-oauth-registration-ui"
client_secret_registered="ISsdiDS832dsa"

result_details="result_details.txt"
result_summary="result_summary.txt"

scope_full=urn:netiq.com:nam:scope:oauth:registration:full
scope_read=urn:netiq.com:nam:scope:oauth:registration:read
scope_modify=urn:netiq.com:nam:scope:oauth:registration:modify

#Client Names For client registration
client_name_all=all_oauth_clients
client_oauth_flow=authcode_clients
client_password_flow=password_clients
client_cred_flow=client-credential_clients

#Sample client with all required parameter enabled for web application
client_id="6a66fad5-654f-4f73-86f9-393474655e75"
client_secret="HzvMhVENjndw-iXjqQ1booduSc-BVD3pR6_YCrpQAJSVI1QEi9eX6QPQPda9F-xzFarRASCCqs-A5r7P7gayig"

client_id="0bf677fb-3a9f-4f32-b14c-45a18e520e5e"
client_secret="IdCHaRoFKKapPAAp3FAGUWdX9NbBW2uo5o_TEzr4ubS43KEiVS-6p8jmLfzyrUtp1FDhpELC74yDdCFwta6xYw"
