Author: admin

  • UNINSTALLING GEMS

    Use of common RubyGems commands The gem command allows you to interact with RubyGems. Ruby 1.9 and newer ships with RubyGems built-in but you may need to upgrade for bug fixes or new features. To upgrade RubyGems, visit the download page. If you want to see how to require files from a gem, skip ahead to What is a gem…

  • LISTING INSTALLED GEMS

    The list command shows your locally installed gems: The list includes defaults gems and bundled gems both of which were shipped with Ruby by default. In Ruby 3.1, the default gems are 70 gems in total including bigdecimal, bundler, csv, did_you_mean etc. and the bundled gems are debug, rake etc.

  • REQUIRING CODE

    Use of common RubyGems commands The gem command allows you to interact with RubyGems. Ruby 1.9 and newer ships with RubyGems built-in but you may need to upgrade for bug fixes or new features. To upgrade RubyGems, visit the download page. If you want to see how to require files from a gem, skip ahead to What is a gem…

  • INSTALLING GEMS

    The install command downloads and installs the gem and any necessary dependencies then builds documentation for the installed gems. Here the drip command depends upon the rbtree gem which has an extension. Ruby installs the dependency rbtree and builds its extension, installs the drip gem, then builds documentation for the installed gems. You can disable documentation generation…

  • FINDING GEMS

    The search command lets you find remote gems by name. You can use regular expression characters in your query: If you see a gem you want more information on you can add the details option. You’ll want to do this with a small number of gems, though, as listing gems with details requires downloading more files: You…

  • What is React.js?

    For integrating Authgear’s web SDK, we will create our web application using the React.js library for JavaScript. React.js (or React) is a declarative and component-based JavaScript library for building user interfaces for Single Page Applications (SPAs). Setup Authgear for React We will be using Authgear’s web SDK in our React app. For this, first, we need…

  • What is Authgear?

    Authgear is an Customer Identity and Access Management (CIAM) solution for web and mobile apps built on top of the OpenID Connect (OIDC) standard, making it very easy to integrate with your new and existing applications. It supports integrations with popular third-party service providers like Google, Apple, and Azure Active Directory (AD). Along with this, it…

  • How to Implement Authentication In Your Web App with Authgear?

    We saw many ways to authenticate the user using different methods and how they work. Now let’s take a practical approach toward authentication. We will be using Authgear here, so we will tell you all you need to know if you’re unfamiliar with it. As for the web, we will be using the React.js library.…

  • Working of Web Tokens

    Here’s how these tokens work in websites and web apps: As you can see, it uses the Bearer schema, which is a cryptic string usually generated by the server in response to a login request. Here’s a diagram that shows how the access token is obtained from the authorization server in order to access protected…

  • How Does Access Token Work on a Web App?

    We hear the term “access tokens” whenever we talk about authentication. But what are these in the first place? Let’s figure this out. What Are Access Tokens? Access token is a code used for authenticating a web application to access specific resources. These access tokens are provided as JSON Web Tokens (JWTs), which are then passed over…