Giter Site home page Giter Site logo

What are realms? about gin-jwt HOT 3 OPEN

appleboy avatar appleboy commented on May 18, 2024
What are realms?

from gin-jwt.

Comments (3)

saito-sv avatar saito-sv commented on May 18, 2024

// spin up a JWT middleware, there are two methods omitted here, // you'll want to check the docs to see what they do but for this // example, the default behaviour will suffice. jwtMiddleware := &jwt.GinJWTMiddleware{ Realm: "robreid.io", // store this somewhere, if your server restarts and you're // generating random passwords, any valid JWTs will be invalid Key: []byte("something super secret"), Timeout: time.Hour, MaxRefresh: time.Hour * 24, Authenticator: authenticate, // this method allows you to jump in and set user information // JWTs aren't encrypted, so don't store any sensitive info PayloadFunc: payload, }

from gin-jwt.

paul-asvb avatar paul-asvb commented on May 18, 2024

Think of it as a space that needs protection. You can use your Appname.
https://tools.ietf.org/html/rfc7235#section-2.2

from gin-jwt.

robertzhangwenjie avatar robertzhangwenjie commented on May 18, 2024

i have the same question

from gin-jwt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.