Skip to content

Commit cf91401

Browse files
committed
use relativ path for redirect
1 parent 4f50316 commit cf91401

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

OpenFlow/src/OAuthProvider.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ export class OAuthProvider {
4040
(app as any).oauth = instance.oauthServer;
4141
app.all('/oauth/token', instance.obtainToken.bind(instance));
4242
app.get('/oauth/login', (req, res) => {
43-
let GRAFANA_URI = "http://localhost.openrpa.dk:3000";
4443
let state = req.params.state;
4544
if (state == null) state = encodeURIComponent(req.query.state as any);
4645
const access_type = req.query.access_type;
@@ -61,7 +60,7 @@ export class OAuthProvider {
6160
res.redirect(`${redirect_uri}?state=${state}&code=cc536d98d27750394a87ab9d057016e636a8ac31`);
6261
} else {
6362
instance._logger.info("[OAuth][anon] /oauth/login " + state);
64-
res.redirect(`https://localhost.openrpa.dk`);
63+
res.redirect(req.baseUrl);
6564
}
6665
});
6766
// app.get('/oauth/authorize', instance.authorize.bind(instance));

OpenFlowNodeRED/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openflow-nodered",
3-
"version": "1.0.93",
3+
"version": "1.0.94",
44
"description": "Simple wrapper around NodeRed, RabbitMQ and MongoDB to support a more scaleable NodeRed implementation.\r Also the \"backend\" for [OpenRPA](https://github.com/skadefro/OpenRPA)",
55
"main": "index.js",
66
"scripts": {

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.93
1+
1.0.94

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openiap",
3-
"version": "1.0.93",
3+
"version": "1.0.94",
44
"description": "Simple wrapper around NodeRed, RabbitMQ and MongoDB to support a more scaleable NodeRed implementation.\r Also the \"backend\" for [OpenRPA](https://github.com/skadefro/OpenRPA)",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)