{"action":"opened","issue":{"url":"https://api.github.com/repos/aspnet/Identity/issues/542","labels_url":"https://api.github.com/repos/aspnet/Identity/issues/542/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Identity/issues/542/comments","events_url":"https://api.github.com/repos/aspnet/Identity/issues/542/events","html_url":"https://github.com/aspnet/Identity/issues/542","id":100451549,"number":542,"title":"Too long tokens","user":{"login":"sergeyzwezdin","id":800755,"avatar_url":"https://avatars.githubusercontent.com/u/800755?v=3","gravatar_id":"","url":"https://api.github.com/users/sergeyzwezdin","html_url":"https://github.com/sergeyzwezdin","followers_url":"https://api.github.com/users/sergeyzwezdin/followers","following_url":"https://api.github.com/users/sergeyzwezdin/following{/other_user}","gists_url":"https://api.github.com/users/sergeyzwezdin/gists{/gist_id}","starred_url":"https://api.github.com/users/sergeyzwezdin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergeyzwezdin/subscriptions","organizations_url":"https://api.github.com/users/sergeyzwezdin/orgs","repos_url":"https://api.github.com/users/sergeyzwezdin/repos","events_url":"https://api.github.com/users/sergeyzwezdin/events{/privacy}","received_events_url":"https://api.github.com/users/sergeyzwezdin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-12T02:25:34Z","updated_at":"2015-08-12T02:25:34Z","closed_at":null,"body":"The be honest I like idea of tokens which implemented for the moment. But I have some confusion about it. I build email confirmation token with `UserManager` this way:\r\n\r\n```csharp\r\nstring emailToken = await _userManager.GenerateEmailConfirmationTokenAsync(user);\r\n```\r\n\r\nIt gives me token with 200 characters length. Also, it contains characters which can not be used in URL, so I encode it in this way:\r\n\r\n```csharp\r\nstring code = WebEncoders.Base64UrlEncode(Encoding.UTF8.GetBytes(emailToken));\r\n```\r\nAnd it gives me string 267 characters length. Next, I want to compose email confirmation URL for my application and email it to user. Please note, I should include something like user id in URL as well. Including the host name full URL going to be 300+ characters, which throws runtime error with \"Bad Request\" reason, as URL is too long.\r\n\r\nIn previous versions of ASP.NET it was possible to increase URL length, but it looks as some kind of hack for me.\r\n\r\nSo if application can't embedd it into URL it's going to be a bit useless. What the proposed way of using this tokens? How current archtecture expects to use the tokens (like email confirmation, password reset, change phone and so on)?"}}