Request Token with JQuery from Web API

前端 未结 1 657
梦毁少年i
梦毁少年i 2021-02-09 14:18

I\'m doing an ajax-request in Javascript to obtain a JWT from my WebAPI AuthenticationProvider. This is my js-function:

    function authenticateUser(credentials         


        
1条回答
  •  北海茫月
    2021-02-09 14:22

    Looks like you may have already solved it but, this is what did it for me. Using the above and setting body to this worked.

    var body = {
        grant_type: 'password',
        username: credentials.name,
        password: credentials.password
    };
    

    0 讨论(0)
提交回复
热议问题