"version": "1.0.0", "domains": [ { "name" : "local", "enabled" : true, "description" : "O/S Authentication", "actions" : { "authenticate" : { "enabled" : true, "options" : "" . . . }, "options" : "-processid", "authProvider" : "_oslocal", "policyProvider" : "login", "events" : { "provider" : "", "groups" : {} } }, . . . "policyProviders" : { "login" : { "type" : "com.progress.sts.SampleLoginPolicy", "hash" : "" } }, |
using Progress.Lang.*.
using OpenEdge.Security.STS.IPolicyProvider. using OpenEdge.Security.Principal. using Progress.Json.ObjectModel.JsonObject. using OpenEdge.Security.PAMStatusEnum.block-level on error undo, throw. class com.progress.sts.SampleLoginPolicy implements IPolicyProvider: method public PAMStatusEnum ApplyPolicy( input pcSender as character, input pcPolicy as character, input phClientPrincipal as Principal, input pcDomainCtx as JsonObject, output pcStatusDetail as character ): message "sender:" pcSender skip "policy:" pcPolicy skip "C-P Token" phClientPrincipal:Token skip "context:" pcDomainCtx. pcStatusDetail = "OK". return PAMStatusEnum:Success. end method. end class. |