Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TFG
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
josborg
TFG
Commits
68fde39d
Commit
68fde39d
authored
Apr 2, 2022
by
josborg
Browse files
Options
Downloads
Patches
Plain Diff
Redireccion dinamica2
parent
10090937
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
client/src/app/shared/api-oauth/cliente-api-auth.service.ts
+2
-1
2 additions, 1 deletion
client/src/app/shared/api-oauth/cliente-api-auth.service.ts
with
2 additions
and
1 deletion
client/src/app/shared/api-oauth/cliente-api-auth.service.ts
+
2
−
1
View file @
68fde39d
...
...
@@ -15,7 +15,7 @@ export class ClienteApiOAutchService {
private
static
readonly
client_secret
=
"
2sKjxaLFQwv5DIxXFVt2pNG7DTGONFWm
"
;
private
static
readonly
scope
=
"
identify
"
;
public
static
redirect_uri
=
"
http://
"
+
location
.
hostname
+
"
/client/auth
"
;
public
static
readonly
discord_login_url
=
"
https://discord.com/oauth2/authorize?redirect_uri=
"
+
ClienteApiOAutchService
.
redirect_uri
+
"
&response_type=token&client_id=
"
+
ClienteApiOAutchService
.
client_id
+
"
&scope=
"
+
ClienteApiOAutchService
.
scope
;
public
static
discord_login_url
=
"
https://discord.com/oauth2/authorize?redirect_uri=
"
+
ClienteApiOAutchService
.
redirect_uri
+
"
&response_type=token&client_id=
"
+
ClienteApiOAutchService
.
client_id
+
"
&scope=
"
+
ClienteApiOAutchService
.
scope
;
public
static
readonly
discord_tocken_url
=
"
https://discord.com/api/oauth2/token
"
;
public
static
readonly
discord_api_url
=
"
https://discordapp.com/api/v8
"
;
...
...
@@ -33,6 +33,7 @@ export class ClienteApiOAutchService {
ClienteApiOAutchService
.
auth_url
=
"
http://
"
+
location
.
hostname
+
"
:
"
+
location
.
port
+
"
/api/auth
"
;
ClienteApiOAutchService
.
redirect_uri
=
"
http://
"
+
location
.
hostname
+
"
:
"
+
location
.
port
+
"
/client/auth
"
;
ClienteApiOAutchService
.
BASE_URI
=
"
http://
"
+
location
.
hostname
+
"
:
"
+
location
.
port
+
"
/api/bot
"
;
ClienteApiOAutchService
.
discord_login_url
=
"
https://discord.com/oauth2/authorize?redirect_uri=
"
+
ClienteApiOAutchService
.
redirect_uri
+
"
&response_type=token&client_id=
"
+
ClienteApiOAutchService
.
client_id
+
"
&scope=
"
+
ClienteApiOAutchService
.
scope
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment