Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The request interceptor doesn't seem to work, secure flag is off #104

Closed
HackToHell opened this issue Sep 19, 2016 · 1 comment
Closed

Comments

@HackToHell
Copy link

The module is configured as such,

.config(['OAuthProvider', function (OAuthProvider) {
        OAuthProvider.configure({
            baseUrl: 'http://127.0.0.1:8000',
            clientId: 'kk',
            clientSecret: 'k',
            grantPath: '/o/token/',
            revokePath: '/o/revoke/',
            options: {
                secure: false,
            }
        });

The cookie, token is set with the proper value from the server. However when I make a http request using $http, the header is not added ! The interceptor doesn't seem to work.

$http.get('http://127.0.0.1:8000/list/xxx/yyy').then(function(data){
        $scope.products = data;
    })
@ruipenso
Copy link
Member

ruipenso commented Feb 3, 2017

The secure flag can be set by OAuthTokenProvider, not with OAuthProvider.

Refs #110.

@ruipenso ruipenso closed this as completed Feb 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants