所以我使用this guide实现了一些承载令牌身份验证。它使用Microsoft提供的OWIN-based OAuth library来生成令牌。我无法弄清楚这会产生什么标记。我问,因为我正在尝试将其迁移到ASP.NET Core,但所有文章都有关于JWT令牌(是的,我知道JWT令牌可以用作OAuth2的持票令牌),这显然不是JWT令牌。响应如下:
{
"access_token": "NXNps5iEafO6v2QMGOpXCGXBNVQw1DQTr9nV9JgG1XIRxEG9_3eliy4MQ3a050GKDQEBuQ_Y1vW-vEkPKx5MWlwEvpdxmWMnlxn-P2nq0gvl7oD2seiY69Yyab3uL3ZlppyI_A-PbQG-BSNJQKcbvoVBzejtXsrs3ADuvNi0EjYf3T12hpdiDzyPoAE1XDF44AL6hxFmUdJJ56pshUkPVlJUM851gfFIVvL5mf1yebWDo5gkdt9YhT1H32vD7KvgXHMMtYkxvT4lW6vXwyusKlH_MzZzHL1KlystJayc9QL-PDsLBGSfqPTQmOSw_vRaezHjMj4dSkCqrT4_RLoeeUsuSk5Q5mHGGYuJwPEPWJ5qXBjZT4U9RtjTB-EEyqINZGC_IxpM40qJPbBi2zvUsbafUroGx-tG2BNLtnvKnrqfZScLDsi7bd85Oc1S5kPuPf5LFtKr3f_ePRE0sGddvxCHcYUR_cn0zJSg1EDARXGM61ApgERTAQyy1oPeu-PgPSqqoGUvZ1-X26bQ2QarSQ3UMdAcO2eIuICM-XiVjb5lNo5FB21ZeTdYIi25WasqNJxQfIfEHqfTcdD5y7YsZA",
"token_type": "bearer",
"expires_in": 31535999,
"userName": "emailuserasusername@outlook.com",
".issued": "Wed, 14 Mar 2018 22:26:59 GMT",
".expires": "Thu, 14 Mar 2019 22:26:59 GMT"
}