I'm implementing 2FA using TOTP on my asp.net web api 2 webservice (NOT .net core).
The implementation uses the TotpSecurityStampBasedTokenProvider which is provided by the Microsoft.AspNet.Identity framework.
When looking at Google Authenticator requirements it lists that the secret needs to be a base32 encoded string.
If you look at the code from the TotpSecurityStampBasedTokenProvider it uses the user's SecurityStamp as the secret which is generated by the Identity Framework. This is a GUID and not a base32 encoded string.
According to the specifications for the Google Authenticator there is a requirement that the secret is a base32 encoded string.
How can I use the TotpSecurityStampBasedTokenProvider for use with Google Authenticator?