Giter Site home page Giter Site logo

brazil-data-cube / bdc-auth-client Goto Github PK

View Code? Open in Web Editor NEW
0.0 5.0 5.0 131 KB

A client package for authentication and authorization based on OAuth 2.0 and BDC-Auth

License: GNU General Public License v3.0

Python 93.89% Shell 6.11%
oauth2 python security webservice client-library

bdc-auth-client's Introduction

A Client Package for Authentication and Authorization Based on OAuth 2.0

Software License Documentation Status Software Life Cycle Release Join us at Discord

About

BDC-Auth-Client is a client package for authentication and authorization based on OAuth 2.0.

Installation

See INSTALL.rst.

Usage

See USAGE.rst.

Developer Documentation

See https://bdc-auth-client.readthedocs.io/en/latest.

License

Copyright (C) 2022 INPE.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

bdc-auth-client's People

Contributors

betonr avatar fabianazioti avatar gqueiroz avatar raphaelrpl avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bdc-auth-client's Issues

Add error handler for expired token

When an access token is invalid, the current context is being set to 403 without any tip.
We should add a tip like Token expired.

When a token is expired, the token introspection results in {"active": False}

Exception when token expired

the following error occurs when token is inactive:

Traceback (most recent call last):
File "/home/user/venv/lib/python3.9/site-packages/bdc_auth_client/decorators.py", line 95, in wrapped
    user_roles = res['sub'].get('roles', [])
KeyError: 'sub'

The JSON data is:

{"active": false}

Prepare for release 0.2.0

Tasks:

  • Inform the right version in: bdc_auth_client/version.py
  • Review the CHANGES.rst.
  • Create a branch named: b-0.2.
  • Review links in the documentation for the stable version (README.rst).
  • Create a tag named: v0.2.0.
  • In the master branch increase version in bdc_auth_client/version.py to 0.4.0a.
  • Notify to the community the release of a new version.

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.