#!/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.
AC_username=admin
AC_password=novell
AC_IP=164.99.185.153
username=vneeraj
password=netiq
user_email=vneeraj@netiq.com
userstore="adminstore"  #User Store Name
user_dn="cn%3D"$username"%2Co%3Dnovell" #user dn format
idpurl="https://sles12-sp3-idp.com:8443/"
scope_username="vneeraj" #Non-developer user
scope_password="netiq"
scope_email="vneeraj@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"
domain1=http://www.testnam.com

#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"

#used for developer to register new client with scope

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="bb271a2e-b582-455d-92fc-c848f5df9355"
client_secret="yEhz-252a45xQ9HBSSJZDg-odn9-KRBDVCS8-72I7wLpvLPc1aP-ryvpQ1acXdi74ct-yJrgdNiPSlocJrG5ZA"
