Skip to content

Instantly share code, notes, and snippets.

@abadongutierrez
Created January 27, 2021 05:59
Show Gist options
  • Save abadongutierrez/e4deaa5e88cef67aa837c28049a70220 to your computer and use it in GitHub Desktop.
Save abadongutierrez/e4deaa5e88cef67aa837c28049a70220 to your computer and use it in GitHub Desktop.
Micronaut Tutorial - Login with Microsoft - HomeController
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