mirror of
https://github.com/bitwarden/web
synced 2025-12-16 16:23:31 +00:00
new identity server uri for auth
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"appSettings": {
|
"appSettings": {
|
||||||
"apiUri": "https://preview-api.bitwarden.com"
|
"apiUri": "https://preview-api.bitwarden.com",
|
||||||
|
"identityUri": "https://preview-identity.bitwarden.com"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"appSettings": {
|
"appSettings": {
|
||||||
"apiUri": "https://api.bitwarden.com"
|
"apiUri": "https://api.bitwarden.com",
|
||||||
|
"identityUri": "https://identity.bitwarden.com"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"appSettings": {
|
"appSettings": {
|
||||||
"apiUri": "http://localhost:4000"
|
"apiUri": "http://localhost:4000",
|
||||||
|
"identityUri": "http://localhost:33656"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ angular
|
|||||||
$qProvider.errorOnUnhandledRejections(false);
|
$qProvider.errorOnUnhandledRejections(false);
|
||||||
$locationProvider.hashPrefix('');
|
$locationProvider.hashPrefix('');
|
||||||
jwtOptionsProvider.config({
|
jwtOptionsProvider.config({
|
||||||
urlParam: 'access_token2',
|
urlParam: 'access_token3',
|
||||||
whiteListedDomains: ['api.bitwarden.com', 'preview-api.bitwarden.com', 'localhost', '192.168.1.8']
|
whiteListedDomains: ['api.bitwarden.com', 'preview-api.bitwarden.com', 'localhost', '192.168.1.8']
|
||||||
});
|
});
|
||||||
var refreshPromise;
|
var refreshPromise;
|
||||||
|
|||||||
@@ -3,7 +3,8 @@
|
|||||||
|
|
||||||
.factory('apiService', function ($resource, tokenService, appSettings, $httpParamSerializer) {
|
.factory('apiService', function ($resource, tokenService, appSettings, $httpParamSerializer) {
|
||||||
var _service = {},
|
var _service = {},
|
||||||
_apiUri = appSettings.apiUri;
|
_apiUri = appSettings.apiUri,
|
||||||
|
_identityUri = appSettings.identityUri;
|
||||||
|
|
||||||
_service.logins = $resource(_apiUri + '/logins/:id', {}, {
|
_service.logins = $resource(_apiUri + '/logins/:id', {}, {
|
||||||
get: { method: 'GET', params: { id: '@id' } },
|
get: { method: 'GET', params: { id: '@id' } },
|
||||||
@@ -108,9 +109,9 @@
|
|||||||
getPublicKey: { url: _apiUri + '/users/:id/public-key', method: 'GET', params: { id: '@id' } }
|
getPublicKey: { url: _apiUri + '/users/:id/public-key', method: 'GET', params: { id: '@id' } }
|
||||||
});
|
});
|
||||||
|
|
||||||
_service.identity = $resource(_apiUri + '/connect', {}, {
|
_service.identity = $resource(_identityUri + '/connect', {}, {
|
||||||
token: {
|
token: {
|
||||||
url: _apiUri + '/connect/token',
|
url: _identityUri + '/connect/token',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8' },
|
headers: { 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8' },
|
||||||
transformRequest: transformUrlEncoded,
|
transformRequest: transformUrlEncoded,
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
angular.module("bit")
|
angular.module("bit")
|
||||||
.constant("appSettings", {"apiUri":"https://api.bitwarden.com","version":"1.10.0","environment":"Production"});
|
.constant("appSettings", {"apiUri":"https://api.bitwarden.com","identityUri":"https://identity.bitwarden.com","version":"1.10.0","environment":"Production"});
|
||||||
|
|||||||
Reference in New Issue
Block a user