1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00:00

new identity server uri for auth

This commit is contained in:
Kyle Spearrin
2017-05-06 21:32:51 -04:00
parent 21ca3abc7e
commit 20e958b1ee
6 changed files with 14 additions and 10 deletions

View File

@@ -3,7 +3,8 @@
.factory('apiService', function ($resource, tokenService, appSettings, $httpParamSerializer) {
var _service = {},
_apiUri = appSettings.apiUri;
_apiUri = appSettings.apiUri,
_identityUri = appSettings.identityUri;
_service.logins = $resource(_apiUri + '/logins/:id', {}, {
get: { method: 'GET', params: { id: '@id' } },
@@ -108,9 +109,9 @@
getPublicKey: { url: _apiUri + '/users/:id/public-key', method: 'GET', params: { id: '@id' } }
});
_service.identity = $resource(_apiUri + '/connect', {}, {
_service.identity = $resource(_identityUri + '/connect', {}, {
token: {
url: _apiUri + '/connect/token',
url: _identityUri + '/connect/token',
method: 'POST',
headers: { 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8' },
transformRequest: transformUrlEncoded,