Posts

Showing posts with the label oracle

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         ...

Tracing Oracle Helidon Application with Zipkin

Image
  Hello Folks, Today I'm sharing my learning on "Tracing Helidon Application with Zipkin". Tracing is a easy concept where where we can trace our application request-responses. Step 1: Add maven dependencies. < dependency > < groupId > io.helidon.microprofile.tracing </ groupId > < artifactId > helidon-microprofile-tracing </ artifactId > </ dependency > < dependency > < groupId > io.helidon.tracing </ groupId > < artifactId > helidon-tracing-zipkin </ artifactId > </ dependency > Step 2: add one statement in microprofile-config.properties tracing.service = first- app Step 3: Fire a http request on your browser or Postman to get to application registered on zipkin. Step 4: open browser with http://localhost:9411/ select the drop-down "service name" thank you :)