.net - Bearer token that never expires -
is possible define asp.net web api 2 bearer token never expires? clue?
i don't think can set never expire set longer accesstokenexpiretimespan:
oauthoptions = new oauthauthorizationserveroptions { tokenendpointpath = new pathstring("/token"), provider = new applicationoauthprovider(publicclientid, usermanagerfactory), authorizeendpointpath = new pathstring("/api/account/externallogin"), accesstokenexpiretimespan = timespan.fromdays(14), allowinsecurehttp = true }; app.useoauthbearertokens(oauthoptions);
Comments
Post a Comment