MAU Exporter
Works against AS "4.3.1" and later.
#Prepare Authorization Server
- Make sure
jans_statscope is present on server and is set as default (defaultScope=true) - AS restricts by time how often
/statendpoint can be called. Default limit is60seconds. Server replies with403 Forbiddenerror if exceeds it. Limit can be changed viastatWebServiceIntervalLimitInSecondsglobal configuration property. - If dynamic registration is disabled on AS, enable it (
dynamicRegistrationEnabled=true)
#Run
Run jar with following command:
#java -jar stat-exporter-4.5.2-SNAPSHOT-jar-with-dependencies.jar <well known endpoint of AS>Successful execution sample:
root@yuriyz-charmed-skylark:/opt# java -jar stat-exporter-4.5.2-SNAPSHOT-jar-with-dependencies.jar https://yuriyz-charmed-skylark.gluu.info/.well-known/openid-configuration
Downloading discovery https://yuriyz-charmed-skylark.gluu.info/.well-known/openid-configuration
Downloaded
Issuer: https://yuriyz-charmed-skylark.gluu.info
Registering client at https://yuriyz-charmed-skylark.gluu.info/oxauth/restv1/register
Registered client_id 55724b5a-1611-46fb-80bd-c2f4536ede38
Requesting token at https://yuriyz-charmed-skylark.gluu.info/oxauth/restv1/token with client_id: 55724b5a-1611-46fb-80bd-c2f4536ede38
Obtained token successfully with scopes 'jans_stat openid'
Downloading stat info ...
Downloaded stat info successfully.
Stat Result:
{
"data" : {
"202306" : 1
},
"mau-signature" : "44cb730c420480a0477b505ae68af508fb90f96cf0ec54c6ad16949dd427f13a"
}
root@yuriyz-charmed-skylark:/opt#