Compare commits
3 Commits
947a1313c8
...
f06dd72213
| Author | SHA1 | Date | |
|---|---|---|---|
| f06dd72213 | |||
| 5719bf41b9 | |||
| dee65c9ee4 |
@@ -169,10 +169,11 @@ if (app.Environment.IsDevelopment())
|
||||
|
||||
return JsonSerializer.Serialize(token, new JsonSerializerOptions() { WriteIndented = true });
|
||||
});
|
||||
app.MapGet("/CheckRegisteredApplication", ([FromServices] TeslaAuthenticatorService service) => service.CheckApplicationRegistrationAsync());
|
||||
app.MapGet("/RegisterApplication", ([FromServices] TeslaAuthenticatorService service) => service.RegisterApplicationAsync());
|
||||
app.MapGet("/CheckRegisteredApplication", ([FromServices] ITeslaAuthenticatorService service) => service.CheckApplicationRegistrationAsync());
|
||||
app.MapGet("/RegisterApplication", ([FromServices] ITeslaAuthenticatorService service) => service.RegisterApplicationAsync());
|
||||
app.MapGet("/Authorize", async (IHttpContextAccessor contextAccessor) => await (contextAccessor.HttpContext!).ChallengeAsync(OpenIdConnectDefaults.AuthenticationScheme, new AuthenticationProperties { RedirectUri = "/Tesla" }));
|
||||
app.MapGet("/KeyPairing", () => Results.Redirect("https://tesla.com/_ak/developer-domain.com"));
|
||||
app.MapGet("/KeyPairing", () => Results.Redirect("https://tesla.com/_ak/tesla-connector.automatic-parking.app"));
|
||||
app.MapGet("/KeyPairing2", () => Results.Redirect("https://tesla.com/_ak/automatic-parking.app"));
|
||||
app.MapGet("/Tokens", async (IHttpContextAccessor httpContextAccessor) =>
|
||||
{
|
||||
var ctx = httpContextAccessor.HttpContext;
|
||||
|
||||
Reference in New Issue
Block a user