Learnitweb

Author: Editorial Team

  • Working of OAuth with resource server

    1. Introduction In this tutorial, we’ll learn how to configure a Spring Boot application as OAuth resource server. In the real world, the resource owner tries to access some information from the resource server. In this tutorial, the resource server is a Spring Boot application. The user tries to access a protected API endpoint. In…

  • Introduction to Docker

    1. Introduction In this tutorial, we’ll discuss Docker and few terms related to it. We’ll also see how to get started with Docker. 2. Before Docker Let’s discuss things before Docker. Whenever the business required a new application, the IT department would purchase a new server. Often, the performance needs of the application were unclear,…

  • Keycloak – Create new OAuth client and request access and refresh token

    1. Introduction In this tutorial, we’ll learn how to configure a new OAuth client application in Keycloak. We’ll then see how to configure client application secrets. We’ll then use the new credential to perform authorization code flow. 2. Configure new OAuth client application We’ll now see how to configure a new OAuth client. In the…

  • Creating New Realm and New User in Keycloak

    1. Introduction In previous tutorial, we started a Keycloak server in our localhost and created Admin user to login to the administrative console of Keycloak. In this tutorial, we’ll create a new realm and a new user in Keycloak. 2. What is a realm in Keycloak? A realm in Keycloak is equivalent to a tenant.…

  • Running Standalone Authorization Server Keycloak on Localhost

    1. Introduction Keycloak is an open-source identity and access management (IAM) solution designed for modern applications and services. It provides features such as single sign-on (SSO), user federation, identity brokering, and social login. Built on top of popular standards like OAuth 2.0, OpenID Connect, and SAML 2.0, Keycloak offers seamless integration with various applications, allowing…

  • OAuth 2 – Authorization Code Grant

    1. Introduction In this tutorial, we will dive into one of the most widely used OAuth 2.0 grant types, designed specifically for secure authorization in web applications. The Authorization Code Grant is an essential tool for server-side applications that require a robust and secure way to obtain access tokens on behalf of users. 2. OAuth…

  • OAuth 2 Grant Types

    1. Introduction In this short tutorial, we’ll briefly discuss OAuth 2 grant types. 2. OAuth 2 Grant Types An OAuth 2 grant type is a method defined by the OAuth 2.0 authorization framework that allows a client application to obtain an access token. Various applications may exist, and the choice of OAuth grant type depends…

  • Web crawler – Breadth-First Search

    1. Introduction In this tutorial, we’ll develop a sample web crawler using Breadth-First Search algorithm. A web crawler, or spider, is a type of bot that is typically operated by search engines like Google and Bing. Their purpose is to index the content of websites all across the Internet so that those websites can appear…

  • Scope in JavaScript

    1. Introduction The scope is a general concept in the field of computer science that refers to the parts of the program where a particular variable, function, etc., can be accessed. In other words, the scope of an identifier (variable, function, etc.) is the part of a program where it is visible or can be…

  • Refresh configurations at runtime using refresh actuator path

    1. Introduction In real world applications, most often the requirement is to change the configuration properties. New changes can be committed to the Git repository supporting the Config service. In our earlier tutorial, we discussed how to read configuration properties from GitHub. Whenever properties are changed in Git, Spring Cloud Config Server can read the…