Allow refreshing the oauth token in the frontend
This commit is contained in:
parent
5451c297c2
commit
659df00cc9
3 changed files with 7 additions and 3 deletions
|
|
@ -7,7 +7,7 @@ import (
|
|||
|
||||
func Router(r *mux.Router) {
|
||||
// Unauthenticated endpoints
|
||||
r.HandleFunc("/arcgis/oauth/begin", getArcgisOauthBegin)
|
||||
r.HandleFunc("/oauth/arcgis/begin", getArcgisOauthBegin)
|
||||
r.HandleFunc("/arcgis/oauth/callback", getArcgisOauthCallback)
|
||||
r.HandleFunc("/mailer/pool/random", getMailerPoolRandom)
|
||||
r.HandleFunc("/mailer/mode-1", getMailer1)
|
||||
|
|
|
|||
|
|
@ -76,11 +76,11 @@
|
|||
</table>
|
||||
</div>
|
||||
<div class="d-flex gap-2">
|
||||
<RouterLink to="/oauth/refresh/arcgis">
|
||||
<a href="/oauth/arcgis/begin">
|
||||
<button class="btn btn-primary">
|
||||
<i class="bi bi-arrow-repeat me-2"></i>Refresh OAuth Token
|
||||
</button>
|
||||
</RouterLink>
|
||||
</a>
|
||||
<RouterLink to="/configuration/integration/arcgis">
|
||||
<button class="btn btn-outline-danger">
|
||||
<i class="bi bi-gear me-2"></i>Configure
|
||||
|
|
|
|||
|
|
@ -77,6 +77,10 @@ export default defineConfig({
|
|||
target: "http://127.0.0.1:9003",
|
||||
changeOrigin: false,
|
||||
},
|
||||
"/oauth": {
|
||||
target: "http://127.0.0.1:9003",
|
||||
changeOrigin: false,
|
||||
},
|
||||
"/qr-code": {
|
||||
target: "http://127.0.0.1:9003",
|
||||
changeOrigin: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue