sec:oauth-server( $oauth-vendor as xs:string, $oauth-flow-type as xs:string, $oauth-client-id as xs:string, $oauth-token-type as xs:string, $oauth-username-attribute as xs:string, $oauth-role-attribute as xs:string, [$oauth-privilege-attribute as xs:string], [$oauth-jwt-issuer-uri as xs:string], [$oauth-jwt-alg as xs:string], [$oauth-jwt-key-ids as xs:string*], [$oauth-jwt-secret-values as xs:string*], [$oauth-jwks-uri as xs:string] ) as element(sec:oauth-server)
This function configures an OAuth server for use by the sec:create-external-security function.
This function must be executed against the security database.
(: execute this against the security database :) xquery version "1.0-ml"; import module namespace sec = "http://marklogic.com/xdmp/security" at "MarkLogic/security.xqy"; sec:oauth-server("Ping Identity", "Resource server", "test", "JSON Web Tokens", "username", "roles", "privileges", "", "HS256", ("test1"), ("testsecret1"), "")
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.