File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 2
2
node_modules
3
3
/dist
4
4
/certs
5
+ /gitlab
5
6
6
7
/public /workspace /*
7
8
Original file line number Diff line number Diff line change 1
1
# URI в формате DocHub корневого манифеста (обязательно)
2
- VUE_APP_DOCHUB_ROOT_MANIFEST = example/ root.yaml
2
+ VUE_APP_DOCHUB_ROOT_MANIFEST = gitlab:34:main@ root.yaml
3
3
4
4
# Идентификатор документа главной страницы. По умолчанию dochub_welcome
5
5
VUE_APP_DOCHUB_ROOT_DOCUMENT = dochub_welcome
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ let middleware = (route) => {
24
24
window . location = new URL (
25
25
`/oauth/authorize?client_id=${ config . oauth . APP_ID } `
26
26
+ `&redirect_uri=` + new URL ( consts . pages . OAUTH_CALLBACK_PAGE , window . location )
27
- + `&response_type=token &state=none&scope=${ config . oauth . REQUESTED_SCOPES } `
27
+ + `&response_type=code &state=none&scope=${ config . oauth . REQUESTED_SCOPES } `
28
28
+ '&' + Math . floor ( Math . random ( ) * 10000 )
29
29
, config . gitlab_server
30
30
) ;
@@ -138,7 +138,7 @@ if (process.env.VUE_APP_DOCHUB_MODE !== "plugin") {
138
138
path : '/sso/gitlab/authentication' ,
139
139
redirect ( route ) {
140
140
const accessToken = Object . keys ( route . query ) . length
141
- ? route . query . access_token
141
+ ? route . query . access_token || route . query . code
142
142
: new URLSearchParams ( route . hash . substr ( 1 ) ) . get ( 'access_token' ) ;
143
143
if ( accessToken ) {
144
144
window . Vuex . dispatch ( 'onReceivedOAuthToken' , accessToken ) ;
You can’t perform that action at this time.
0 commit comments