This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Español | |
https://linkedinazureadb2c.b2clogin.com/linkedinazureadb2c.onmicrosoft.com/oauth2/v2.0/authorize? | |
p=B2C_1_InicioSesionConRegistro& | |
client_id=f4adfa19-2162-449a-a083-a2c7a1834aec& | |
nonce=defaultNonce& | |
redirect_uri=https%3A%2F%2Fjwt.ms%2F& | |
scope=openid& | |
response_type=id_token& | |
prompt=login& | |
ui_locales=es <-- UI_LOCALES = ES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dotnet new sln -n AzureADB2C | |
dotnet new mvc -n AzureADB2C.MVC -o AzureADB2C.MVC | |
dotnet sln add .\AzureADB2C.MVC\AzureADB2C.MVC.csproj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Crear solución y projecto MVC | |
dotnet new sln --name AzureAdB2C | |
dotnet new mvc --name AzureAdB2C.MVC --output AzureAdB2C.MVC | |
dotnet sln add .\AzureAdB2C.MVC\AzureAdB2C.MVC.csproj | |
# Instalar las librerías necesarias | |
dotnet add .\AzureAdB2C.MVC\AzureAdB2C.MVC.csproj package Microsoft.Identity.Web | |
dotnet add .\AzureAdB2C.MVC\AzureAdB2C.MVC.csproj package Microsoft.Identity.Web.UI | |
# Restaurar y compilar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[tokio::test] | |
async fn demo_test() { | |
// Problem: | |
// This test works fine with revm 8.0.0, but at latest version (12.1.0) it fails. | |
// There is a new at EthersDB::new() that checks that current tokio::runtime is | |
// not single-threaded (https://github.com/bluealloy/revm/blob/8eaff99234aca42955345e2775ef11e24e2c0339/crates/revm/src/db/ethersdb.rs#L24). | |
// Context: | |
// Our main application runs using tokio::main macro, which works pretty well with | |
// both versions of the library. However, as you can appreciate in the code snippet, |