Commit ec24b00e authored by Randall Leeds's avatar Randall Leeds

Support baseUrl for authentication service.

parent 52d6ce4c
......@@ -362,7 +362,11 @@ class AuthenticationProvider
@actions['claim'] = @actions['forgot']
$get: ['$resource', ($resource) -> $resource('', {}, @actions).load()]
$get: [
'$document', '$resource',
($document, $resource) ->
baseUrl = $document[0].baseURI.replace(/:(\d+)/, '\\:$1')
$resource(baseUrl, {}, @actions).load()]
class DraftProvider
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment