cs3org / ocm-test-suite

Test suites for protocols a Personal Data Store may support
https://pdsinterop.org/test-suites/
MIT License
0 stars 8 forks source link

token endpoint #88

Closed michielbdejong closed 2 months ago

michielbdejong commented 2 months ago

In OcmStub I'll start sending a code in in addition to sharedSecret, and that can be exchanged for a short-lived access token using a signed request. The token endpoint will be announced in /ocm-provider/ and /.well-known/ocm. I'll also mock a WebDAV API that checks the tokens in API request Authorization headers.

michielbdejong commented 2 months ago

I added some first draft code for this, will continue with this tomorrow

michielbdejong commented 2 months ago

Trying this now straight in OcmStub, using readme instructions from there and then visiting https://localhost/shareWith?bob@localhost with a browser.

michielbdejong commented 2 months ago

Finished in https://github.com/michielbdejong/ocm-stub/commit/0120a94ae8168977c032710d2c68743bbc3b15a4

michielbdejong commented 2 months ago

To see it working,