Setup details (click to expand)
References:
* https://github.com/owncloud/oauth2/wiki/OAuth-code-Flow-Sequence-Diagram
OAuth2 app Test Plan
This aims to be a client-agnostic testplan for the OAuth2 application, centered in the actions available in the webUI and/or occ commands and their impact on ownCloud's core behavior. To test the application from a client standpoint see:
Setup
Setup details (click to expand)
References: * https://github.com/owncloud/oauth2/wiki/OAuth-code-Flow-Sequence-DiagramOAuth2 app Test Plan
This aims to be a client-agnostic testplan for the OAuth2 application, centered in the actions available in the webUI and/or
occ
commands and their impact on ownCloud's core behavior. To test the application from a client standpoint see:Testing functionality
occ app:enable oauth2
- Replies from the WebDAV endpoint includes a new
WWW-Authenticate: Bearer...
headerocc app:disable oauth2
- Previously mentioned header goes away in further requests
client_id
andclient_secret
are generated together with a (required) Client Name and a (required) Redirection URL- All client sessions opened from those clients get removed
user
parameter in: https://github.com/owncloud/oauth2/pull/67occ app:enable web
client_id="$(tr -dc 'a-z0-9' < /dev/urandom \| head -c 32)"
client_secret="$(tr -dc 'a-z0-9' < /dev/urandom \| head -c 32)"
web_baseurl="https://$oc10_fqdn/index.php/apps/web"
occ config:system:set web.baseUrl --value $web_baseurl
occ oauth:add-client "ownCloud Web" $client_id $client_secret $web_baseurl/oidc-callback.html