Repository navigation
Switch OAuth/OpenId Connect library - #525
Conversation
409b3d9 to
e5d0d09
Compare
I'll add some notes in the description asap .... |
b5f178d to
0262735
Compare
|
hm auth.js takes |
❓ |
Thx for testing - I'll have a look asap ... |
0262735 to
6c2fec9
Compare
|
@DeepDiver1975 hm, diff --git a/src/services/auth.js b/src/services/auth.js
index 84f2cca..7b4a520 100644
--- a/src/services/auth.js
+++ b/src/services/auth.js
@@ -15,13 +15,13 @@ export function initVueAuthenticate (config) {
// with OAuth2 we need to se the metadata manually
metadataUrl: config.metaDataUrl,
client_id: config.clientId,
- redirect_uri: baseUrl + '/#/oidc-callback',
+ redirect_uri: baseUrl + '#/oidc-callback',
response_type: 'code', // code triggers auth code grant flow
response_mode: 'query',
scope: 'openid profile offline_access',
monitorSession: false,
post_logout_redirect_uri: baseUrl,
- silent_redirect_uri: baseUrl + '/#/oidc-silent-redirect',
+ silent_redirect_uri: baseUrl + '#/oidc-silent-redirect',
accessTokenExpiringNotificationTime: 10,
automaticSilentRenew: false,
filterProtocolClaims: true,fixes that for me |
76e57b8 to
bcc9ca4
Compare
bcc9ca4 to
4b366b1
Compare
2e90455 to
b21d6f9
Compare
scramb
left a comment
There was a problem hiding this comment.
Seems to work smoother than the old lib. Can't get the test to run by just bumping 🤓
…ta-streams-archive-download fix: use native fetch for downloading archives


Description
OAuth2 config will look like:
{ "server": "http://localhost:8080", "theme": "owncloud", "version": "0.1.0", "auth": { "clientId": "Cxfj9F9ZZWQbQZps1E1M0BszMz6OOFq3lxjSuc8Uh4HLEYb9KIfyRMmgY5ibXXrU", "url": "http://localhost:8080/index.php/apps/oauth2/api/v1/token", "authUrl": "http://localhost:8080/index.php/apps/oauth2/authorize" }, "apps" : [ "files" ] }OpenId Connect:
{ "server" : "http://deepdiver:8080", "theme": "owncloud", "version": "0.1.0", "auth" : { "clientId": "Cxfj9F9ZZWQbQZps1E1M0BszMz6OOFq3lxjSuc8Uh4HLEYb9KIfyRMmgY5ibXXrU", "metaDataUrl": "https://owncloud.localhost:8443/.well-known/openid-configuration", "url": "https://owncloud.localhost:8443" }, "apps" : [ "files", "markdown-editor","pdf-viewer" ] }The config requires some cleanup .....
This only replaces the used library. Implicit grant still used with OAuth when talking to ownCloud.
The OpenId Connect flow already uses Auth Code and refreshing the token works.
Related Issue
How Has This Been Tested?
Types of changes
Checklist:
Open tasks: