mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 00:48:32 +01:00
c18d9f5280
register page redirect user to dashboard if they are logged in enable csrf for login page Set models more strict bootstrap developer page add helper method to ModelMixin, remove CRUDMixin display list of clients on developer index, add copy client-secret to clipboard using clipboardjs add toastr and use jquery non slim display a toast when user copies the client-secret create new client, generate client-id using unidecode client detail page: can edit client add delete client implement /oauth/authorize and /oauth/allow-deny implement /oauth/token add /oauth/user_info endpoint handle scopes: wip take into account scope: display scope, return user data according to scope create virtual-domain, gen email, client_user model WIP create authorize_nonlogin_user page user can choose to generate a new email no need to interfere with root logger log for before and after request if user has already allowed a client: generate a auth-code and redirect user to client get_user_info takes into account gen email display list of clients that have user has authorised use yk-client domain instead of localhost as cookie depends on the domain name use wtforms instead of flask_wtf Dockerfile delete virtual domain EMAIL_DOMAIN can come from env var bind to host 0.0.0.0 fix signup error: use session as default csrf_context rename yourkey to simplelogin add python-dotenv, ipython, sqlalchemy_utils create DB_URI, FLASK_SECRET. Load config from CONFIG file if exist add shortcuts to logging create shell add psycopg2 do not add local data in Dockerfile add drop_db into shell add shell.prepare_db() fix prepare_db setup sentry copy assets from tabler/dist add icon downloaded from https://commons.wikimedia.org/wiki/File:Simpleicons_Interface_key-tool-1.svg integrate tabler - login and register page add favicon template: default, header. Use gravatar for user avatar url use default template for dashboard, developer page use another icon add clipboard and notie prettify dashboard add notie css add fake gen email and client-user prettify list client page, use notie for toast add email, name scope to new client display client scope in client list prettify new-client, client-detail add sentry-sdk and blinker add arrow, add dt jinja filter, prettify logout, dashboard comment "last used" in dashboard for now prettify date display add copy email to clipboard to dashboard use "users" as table name for User as "user" is reserved key in postgres call prepare_db() when creating new db error page 400, 401, 403, 404 prettify authorize_login_user create already_authorize.html for user who has already authorized a client user can generate new email display all other generated emails add ENV variable, only reset DB when ENV=local fix: not return other users gen emails display nb users for each client refactor shell: remove prepare_db() add sendgrid add /favicon.ico route add new config: URL, SUPPORT_EMAIL, SENDGRID_API_KEY user needs to activate their account before login create copy button on dashboard client can have multiple redirect uris, in client detail can add/remove redirect-uri, use redirect_uri passed in /authorize refactor: move get_user_info into ClientUser model dashboard: display all apps, all generated emails add "id" into user_info add trigger email button invalidate the session at each new version by changing the secret centralize Client creation into Client.create_new user can enable/disable email forwarding setup auto dismiss alert: just add .alert-auto-dismiss move name down in register form add shell.add_real_data move blueprint template to its own package prettify authorize page for non-authenticated user update readme, return error if not redirect_uri add flask-wtf, use psycopg2-binary use flask-wtf FlaskForm instead of Form rename email -> email_utils add AWS_REGION, BUCKET, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY to config add s3 module add File model, add Client.icon_id handle client icon update can create client with icon display client icon in client list page add Client.home_url take into account Client.home_url add boto3 register: ask name first only show "trigger test email" if email forwarding is enabled display gen email in alphabetical order, client in client.name alphabetical order better error page the modal does not get close when user clicks outside of modal add Client.published column discover page that displays all published Client add missing bootstrap.bundle.min.js.map developer can publish/unpublish their app in discover use notie for display flash message create hotmail account fix missing jquery add footer, add global jinja2 variable strengthen model: use nullable=False whenever possible, rename client_id to oauth_client_id, client_secret to oauth_client_secret add flask-migrate init migrate 1st migrate version fix rename client_id -> oauth_client_id prettify UI use flask_migrate.upgrade() instead of db.create_all() make sure requirejs.config is called for all page enable sentry for js, use uppercase for global jinja2 variables add flask-admin add User.is_admin column setup flask admin, only accessible to admin user fix migration: add server_default replace session[redirect_after_login] by "next" request args add pyproject.toml: ignore migrations/ in black add register waiting_activation_email page better email wording add pytest add get_host_name_and_scheme and tests example fail test fix test fix client-id display add flask-cors /user_info supports cors, add /me as /user_info synonym return client in /me support implicit flow no need to use with "app.app_context()" add watchtower to requirement add param ENABLE_CLOUDWATCH, CLOUDWATCH_LOG_GROUP, CLOUDWATCH_LOG_STREAM add cloudwatch logger if cloudwatch is enabled add 500 error page add help text for list of used client display list of app/website that an email has been used click on client name brings to client detail page create style.css to add additional style, append its url with the current sha1 to avoid cache POC on how to send email using postfix add sqlalchemy-utils use arrow instead of datetime add new params STRIPE_API, STRIPE_YEARLY_SKU, STRIPE_MONTHLY_PLAN show full error in local add plan, plan_expiration to User, need to create enum directly in migration script, cf https://github.com/sqlalchemy/alembic/issues/67 reformat all html files: use space instead of tab new user will have trial plan for 15 days add new param MAX_NB_EMAIL_FREE_PLAN only user with enough quota can create new email if user cannot create new gen email, pick randomly one from existing gen emails. Use flush instead of commit rename STRIPE_YEARLY_SKU -> STRIPE_YEARLY_PLAN open client page in discover in a new tab add stripe not logging /static call: disable flask logging, replace by after_request add param STRIPE_SECRET_KEY add 3 columns stripe_customer_id, stripe_card_token, stripe_subscription_id user can upgrade their pricing add setting page as coming-soon add GenEmail, ClientUser to admin ignore /admin/static logging add more fake data add ondelete="cascade" whenever possible rename plan_expiration -> trial_expiration reset migration: delete old migrations, create new one rename test_send_email -> poc_send_email to avoid the file being called by pytest add new param LYRA_ANALYTICS_ID, add lyra analytics add how to create new migration into readme add drift to base.html notify admin when new user signs up or pays subscription log exception in case of 500 use sendgrid to notify admin add alias /userinfo to user_info endpoint add change_password to shell add info on how payment is handled invite user to retry if card not working remove drift and add "contact us" link move poc_send_email into poc/ support getting client-id, client-secret from form-data in addition to basic auth client-id, client-secret is passed in form-data by passport-oauth2 for ex add jwtRS256 private and public key add jwk-jws-jwt poc add new param OPENID_PRIVATE_KEY_PATH, OPENID_PRIVATE_KEY_PATH add scope, redirect_url to AuthorizationCode and OauthToken take into scope when creating oauth-token, authorization-code add jwcrypto add jose_utils: make_id_token and verify_id_token add &scope to redirect uri add "email_verified": True into user_info fix user not activated add /oauth2 as alias for /oauth handle case where scope and state are empty remove threaded=False Use Email Alias as wording remove help text user can re-send activation email add "expired" into ActivationCode Handle the case activation code is expired reformat: use form.validate_on_submit instead of request.method == post && form.validate use error text instead of flash() display client oauth-id and oauth-secret on client detail page not display oauth-secret on client listing fix expiration check improve page title, footer add /jwks and /.well-known/openid-configuration init properly tests, fix blueprint conflict bug in flask-admin create oauth_models module rename Scope -> ScopeE to distinguish with Scope DB model set app.url_map.strict_slashes = False use ScopeE instead of SCOPE_NAME, ... support access_token passed as args in /userinfo merge /allow-deny into /authorize improve wording take into account the case response_type=code and openid is in scope take into account response_type=id_token, id_token token, id_token code make sure to use in-memory db in test fix scope can be null allow cross_origin for /.well-known/openid-configuration and /jwks fix footer link center authorize form rename trial_expiration to plan_expiration move stripe init to create_app() use real email to be able to receive email notification add user.profile_picture_id column use user profile picture and fallback to gravatar use nguyenkims+local@gm to distinguish with staging handle plan cancel, reactivation, user profile update fix can_create_new_email create cron.py that set plan to free when expired add crontab.yml add yacron use notify_admin instead of LOG.error add ResetPasswordCode model user can change password in setting increase display time for notie add forgot_password page If login error: redirect to this page upon success login. hide discover tab add column user.is_developer only show developer menu to developer comment out the publish button set local user to developer make sure only developer can access /developer blueprint User is invited to upgrade if they are in free plan or their trial ends soon not sending email when in local mode create Partner model create become partner page use normal error handling on local fix migration add "import sqlalchemy_utils" into migration template small refactoring on setting page handle promo code. TODO: add migration file add migration for user.promo_codes move email alias on top of apps in dashboard add introjs move encode_url to utils create GenEmail.create_new_gen_email create a first alias mail to show user how to use when they login show intro when user visits the website the first time fix register
1 line
No EOL
5.8 KiB
XML
Executable file
1 line
No EOL
5.8 KiB
XML
Executable file
<svg width="100" height="60" viewBox="0 0 100 60" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>Ingenico-light</title><desc>Created with Sketch.</desc><g id="Light-Payment-badges" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(-290.000000, -989.000000)"><g id="Ingenico-light" transform="translate(290.000000, 989.000000)"><rect id="Rectangle" fill="#FFF" x="0" y="0" width="100" height="60" rx="4"/><polygon id="Fill-4" fill="#263779" points="11.5496562 24.9720833 14.0090937 24.9720833 14.0090937 36.0258611 11.5496562 36.0258611"/><polygon id="Fill-5" fill="#263779" points="17.1065469 19.9621944 60.915125 19.9621944 60.915125 21.7093611 17.1065469 21.7093611"/><path d="M35.5346563,27.1213611 C35.1227188,27.0810278 34.6461875,27.0015833 33.9313906,27.0015833 C31.8631719,27.0015833 31.0453906,28.5183611 31.0453906,30.5790278 C31.0453906,33.21475 32.0874219,34.1271389 33.7065313,34.1271389 C34.4450938,34.1271389 35.0593438,33.8221944 35.5346563,33.5826389 L35.5346563,27.1213611 L35.5346563,27.1213611 Z M33.2165938,40.5890278 C31.6596406,40.5890278 30.2312656,40.2596389 29.3513281,39.9956389 L29.7273125,37.89525 C30.6675781,38.1103611 32.0368438,38.31875 32.8028281,38.31875 C34.4450938,38.31875 35.5492813,38.0315278 35.5492813,36.0918611 C35.5870625,36.0521389 35.5492813,35.5394167 35.5492813,35.4825833 C35.0465469,35.8908056 34.3323594,36.2116389 33.5791719,36.2116389 C31.2227188,36.2116389 28.5999688,35.5644722 28.5999688,30.5631389 C28.5999688,26.7931944 31.0210156,24.7869167 33.9551563,24.7869167 C35.1227188,24.7869167 36.3902188,24.9568056 37.9959219,25.2208056 L37.9959219,36.3699167 C37.9959219,39.46825 35.4005938,40.5890278 33.2165938,40.5890278 L33.2165938,40.5890278 Z" id="Fill-6" fill="#263779"/><path d="M45.0585781,26.7388056 C44.0049687,26.7388056 42.9135781,27.5039167 42.8008437,29.3641389 L46.9007187,29.3641389 C46.9153437,27.6628056 46.1103594,26.7388056 45.0585781,26.7388056 L45.0585781,26.7388056 Z M42.7484375,31.2500278 C42.7630625,33.6626944 44.154875,34.0073611 46.0000625,34.0073611 C46.7136406,34.0073611 47.9689531,33.90225 48.7824687,33.7176944 L49.1590625,35.7881389 C48.3455469,36.0668056 46.7885937,36.2116389 45.5472969,36.2116389 C42.3352812,36.2116389 40.289,35.0211944 40.289,30.6829167 C40.289,26.1863611 42.3870781,24.7086944 45.2846562,24.7086944 C48.2553594,24.7086944 49.4594844,26.8176389 49.4594844,30.2740833 L49.4594844,31.2500278 L42.7484375,31.2500278 L42.7484375,31.2500278 Z" id="Fill-7" fill="#263779"/><polygon id="Fill-8" fill="#263779" points="64.0113594 24.9720833 66.4829844 24.9720833 66.4829844 36.0258611 64.0113594 36.0258611"/><path d="M76.5169531,27.3596944 C75.842375,27.0810278 75.2013125,26.8818056 74.1714687,26.8818056 C72.5919687,26.8818056 71.3896719,27.8473611 71.3896719,30.4458056 C71.3896719,32.9379167 72.0027031,34.0458611 74.7132031,34.0458611 C75.5523125,34.0458611 76.1184219,33.8875833 76.7972656,33.7824722 L77.13425,35.8523056 C76.329875,36.0258611 75.6552969,36.2116389 74.5395312,36.2116389 C70.4110156,36.2116389 68.8528437,34.5341389 68.8528437,30.40425 C68.8528437,26.8970833 70.9143594,24.6921944 74.1714687,24.6921944 C75.6290937,24.6921944 76.5565625,24.9971389 77.2335781,25.3949722 L76.5169531,27.3596944" id="Fill-9" fill="#263779"/><path d="M83.56925,26.8176389 C81.5491719,26.8176389 81.0104844,28.5996389 81.0104844,30.5246389 C81.0104844,32.5846944 81.6247344,34.1271389 83.6052031,34.1271389 C85.611875,34.1271389 86.1005937,32.5034167 86.1005937,30.4983611 C86.1005937,28.6136944 85.611875,26.8176389 83.56925,26.8176389 L83.56925,26.8176389 Z M83.4559062,36.2739722 C80.2938594,36.2739722 78.5272812,34.14975 78.5272812,30.6040833 C78.5272812,26.8818056 80.5729531,24.6921944 83.6204375,24.6921944 C87.045125,24.6921944 88.6368125,26.8176389 88.6368125,30.4983611 C88.6368125,34.3110833 86.4174687,36.2739722 83.4559062,36.2739722 L83.4559062,36.2739722 Z" id="Fill-10" fill="#263779"/><path d="M14.1967813,20.8366944 C14.1967813,21.6134167 13.559375,22.2514167 12.7854688,22.2514167 C11.9987656,22.2514167 11.3631875,21.6134167 11.3631875,20.8366944 C11.3631875,20.0495833 11.9987656,19.4109722 12.7854688,19.4109722 C13.559375,19.4109722 14.1967813,20.0495833 14.1967813,20.8366944" id="Fill-11" fill="#263779"/><path d="M66.6688438,20.8366944 C66.6688438,21.6134167 66.0326563,22.2514167 65.2471719,22.2514167 C64.4629063,22.2514167 63.8370781,21.6134167 63.8370781,20.8366944 C63.8370781,20.0495833 64.4629063,19.4109722 65.2471719,19.4109722 C66.0326563,19.4109722 66.6688438,20.0495833 66.6688438,20.8366944" id="Fill-12" fill="#263779"/><path d="M23.0302813,24.6689722 C21.4745469,24.6689722 20.2947969,25.6039722 19.5940156,26.1313611 L19.5940156,26.1050833 C19.5763437,26.1344167 19.5464844,26.1551944 19.5190625,26.1839167 C19.2807969,25.2978056 18.6427812,25.0393056 18.0675312,24.9720833 L17.1102031,24.9720833 L17.1102031,36.0258611 L19.5940156,36.0258611 L19.5940156,27.9261944 C20.0827344,27.6481389 21.2119062,26.9765278 22.24175,26.9765278 C23.6323438,26.9765278 23.9193594,27.7031389 23.9193594,29.30975 L23.9193594,36.0258611 L26.3794062,36.0258611 L26.3794062,29.0060278 C26.3794062,26.7388056 26.1783125,24.6689722 23.0302813,24.6689722" id="Fill-13" fill="#263779"/><path d="M57.5812344,24.6689722 C56.0273281,24.6689722 54.8372187,25.6039722 54.1455781,26.1313611 L54.1455781,26.1050833 C54.1163281,26.1344167 54.0895156,26.1551944 54.0694062,26.1839167 C53.8213906,25.2978056 53.1943437,25.0393056 52.6075156,24.9720833 L51.662375,24.9720833 L51.662375,36.0258611 L54.1455781,36.0258611 L54.1455781,27.9261944 C54.6336875,27.6481389 55.76225,26.9765278 56.7933125,26.9765278 C58.1845156,26.9765278 58.4623906,27.7031389 58.4623906,29.30975 L58.4623906,36.0258611 L60.9309687,36.0258611 L60.9309687,29.0060278 C60.9309687,26.7388056 60.7195156,24.6689722 57.5812344,24.6689722" id="Fill-14" fill="#263779"/></g></g></svg> |