Posts

Showing posts with the label authentication

Oracle Helidon MP - Basic Authentication

Image
Hi Folks, Today I'm sharing my learning on "Oracle Helidon MP - Basic Authentication". Basic Authentication is a easy concept by which we can authenticate and authorise a user based on his credentials and roles. Step 0: Without Authentication. Step 1: Add maven dependencies.           < dependency >      < groupId > io.helidon.microprofile </ groupId >      < artifactId > helidon-microprofile-security </ artifactId > </ dependency > < dependency >      < groupId > io.helidon.security.providers </ groupId >      < artifactId > helidon-security-providers-http-auth </ artifactId > </ dependency > Step 2: Add Authentication & Authorisation Annotations. import io.helidon.security.annotations.Authenticated ; import jakarta.annotation.security.RolesAllowed ; @Authenticated         ...