Created
January 27, 2021 05:59
-
-
Save abadongutierrez/e4deaa5e88cef67aa837c28049a70220 to your computer and use it in GitHub Desktop.
Micronaut Tutorial - Login with Microsoft - HomeController
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
package com.jabaddon.tutorials.micronaut.loginwithmicrosoft; | |
import io.micronaut.http.annotation.Controller; | |
import io.micronaut.http.annotation.Get; | |
import io.micronaut.security.annotation.Secured; | |
import io.micronaut.security.rules.SecurityRule; | |
import io.micronaut.views.View; | |
import java.util.HashMap; | |
import java.util.Map; | |
@Controller | |
public class HomeController { | |
@Secured(SecurityRule.IS_ANONYMOUS) | |
@View("home") | |
@Get | |
public Map<String, Object> index() { | |
return new HashMap<>(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment