infrabel / themes-gnap

Standardized build to produce web themes for use with GNaP.
http://gnap.io/
BSD 3-Clause "New" or "Revised" License
3 stars 4 forks source link

Token resource endpoint address should be configurable #121

Closed IlianSchokkaert closed 9 years ago

IlianSchokkaert commented 9 years ago

The GNAP jwt token issuer sets the default api path to /tokens. The client side token.resource uses the path /api/tokens resulting in a post error.

Since the issuer path can be changed server side via the properties => settings menu, it should also be configurable client side

Server side GNaP.Owin.Authentication.Jwt/src/GNaP.Owin.Authentication.Jwt/JwtTokenIssuerOptions.cs

public class JwtTokenIssuerOptions
{
    private const string DefaultIssuerPath = "/tokens";

Client side themes-gnap/custom/gnap-angular/js/develop/gnap/token.resource.js

function Token($resource) {
    return $resource('/api/tokens');
}
CumpsD commented 9 years ago

Duplicate of https://github.com/infrabel/themes-gnap/issues/92