mirror of
https://github.com/simple-login/app.git
synced 2024-11-18 22:53:27 +08: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
7 KiB
XML
Executable file
1 line
No EOL
7 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>CoinKite-dark</title><desc>Created with Sketch.</desc><g id="Dark-Payment-badges" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(-450.000000, -1189.000000)"><g id="CoinKite-dark" transform="translate(450.000000, 1189.000000)"><rect id="Rectangle" fill="#F27100" x="0" y="0" width="100" height="60" rx="4"/><g id="Group" transform="translate(30.799026, 42.949735)" fill="#FFF"><path d="M0,3.69567772 C0,1.53895826 1.60415407,0.0835846519 3.68425954,0.0835846519 C5.19502706,0.0835846519 6.07478076,0.910896118 6.56120542,1.79030084 L5.29888687,2.41865729 C5.00912672,1.85328364 4.38800432,1.40328035 3.68455047,1.40328035 C2.42194099,1.40328035 1.51105844,2.37715927 1.51105844,3.69597204 C1.51105844,5.01507911 2.42194099,5.98866372 3.68455047,5.98866372 C4.38829524,5.98866372 5.00912672,5.53866044 5.29888687,4.97328679 L6.56120542,5.59134231 C6.07478076,6.46015179 5.19502706,7.30835942 3.68425954,7.30835942 C1.60415407,7.3077708 0,5.84180195 0,3.69567772 L0,3.69567772 Z" id="Shape"/><path d="M7.08865035,4.64836617 C7.08865035,3.21418304 8.08186434,1.99955678 9.72762052,1.99955678 C11.383559,1.99955678 12.377064,3.21388873 12.377064,4.64836617 C12.377064,6.08284361 11.38385,7.30806511 9.72762052,7.30806511 C8.08215527,7.3077708 7.08865035,6.08284361 7.08865035,4.64836617 L7.08865035,4.64836617 Z M11.0108856,4.64836617 C11.0108856,3.86343565 10.5555898,3.18269164 9.72762052,3.18269164 C8.9098336,3.18269164 8.45482871,3.86314134 8.45482871,4.64836617 C8.45482871,5.44418623 8.91012452,6.12463594 9.72762052,6.12463594 C10.5552989,6.12463594 11.0108856,5.44418623 11.0108856,4.64836617 L11.0108856,4.64836617 Z" id="Shape"/><path d="M13.2349984,0.785224828 C13.2349984,0.345522469 13.5870162,0 14.0114741,0 C14.4461143,0 14.7978412,0.345522469 14.7978412,0.785224828 C14.7978412,1.22492719 14.4461143,1.58075058 14.0114741,1.58075058 C13.5870162,1.58075058 13.2349984,1.22492719 13.2349984,0.785224828 L13.2349984,0.785224828 Z M13.3592228,7.18209951 L13.3592228,2.12522807 L14.6733258,2.12522807 L14.6733258,7.18209951 L13.3592228,7.18209951 L13.3592228,7.18209951 Z" id="Shape"/><path d="M19.3510903,7.18209951 L19.3510903,4.12507916 C19.3510903,3.42373329 18.9888901,3.18298595 18.4300254,3.18298595 C17.9127628,3.18298595 17.5191429,3.47612086 17.2916404,3.76925576 L17.2916404,7.18239382 L15.9772465,7.18239382 L15.9772465,2.12522807 L17.2916404,2.12522807 L17.2916404,2.77418637 C17.6128203,2.3971725 18.2333609,1.99926247 19.0409655,1.99926247 C20.1479307,1.99926247 20.6756666,2.6273246 20.6756666,3.61179876 L20.6756666,7.18180519 L19.3510903,7.18209951 L19.3510903,7.18209951 Z" id="Shape"/><polygon id="Shape" points="25.2079691 7.18209951 23.8831019 5.23463598 23.282926 5.88388859 23.282926 7.18239382 21.968823 7.18239382 21.968823 0.198660704 23.282926 0.198660704 23.282926 4.37583311 25.1771312 2.12493376 26.7911767 2.12493376 24.8143491 4.41762544 26.8531434 7.18151088"/><path d="M27.3907707,0.785224828 C27.3907707,0.345522469 27.7427885,0 28.1669555,0 C28.6015957,0 28.9536136,0.345522469 28.9536136,0.785224828 C28.9536136,1.22492719 28.6018867,1.58075058 28.1669555,1.58075058 C27.7427885,1.58075058 27.3907707,1.22492719 27.3907707,0.785224828 L27.3907707,0.785224828 Z M27.5152861,7.18209951 L27.5152861,2.12522807 L28.82968,2.12522807 L28.82968,7.18209951 L27.5152861,7.18209951 L27.5152861,7.18209951 Z" id="Shape"/><path d="M30.4018325,5.91537999 L30.4018325,3.28776108 L29.5741541,3.28776108 L29.5741541,2.12522807 L30.4018325,2.12522807 L30.4018325,0.742843878 L31.7165173,0.742843878 L31.7165173,2.12522807 L32.7303869,2.12522807 L32.7303869,3.28776108 L31.7165173,3.28776108 L31.7165173,5.55926229 C31.7165173,5.88388859 31.8823439,6.12463594 32.1718131,6.12463594 C32.3684776,6.12463594 32.5549598,6.05135221 32.6273999,5.96776756 L32.9066868,6.98314449 C32.7100222,7.16120334 32.3582953,7.3077708 31.8099039,7.3077708 C30.8882571,7.3077708 30.4018325,6.82627611 30.4018325,5.91537999 L30.4018325,5.91537999 Z" id="Shape"/><path d="M33.3099072,4.64836617 C33.3099072,3.18269164 34.3860345,1.99955678 35.8970929,1.99955678 C37.3976781,1.99955678 38.4019472,3.13030408 38.4019472,4.77403746 L38.4019472,5.08836284 L34.6862679,5.08836284 C34.7796544,5.70582974 35.2762614,6.21911014 36.1248863,6.21911014 C36.5493442,6.21911014 37.1288645,6.04105128 37.4494626,5.72702021 L38.0394561,6.60642493 C37.5425582,7.06731777 36.7559001,7.3077708 35.9800062,7.3077708 C34.4584745,7.3077708 33.3099072,6.27120339 33.3099072,4.64836617 L33.3099072,4.64836617 Z M35.8970929,3.08851175 C35.079306,3.08851175 34.7275791,3.66448064 34.6760856,4.16687148 L37.1390468,4.16687148 C37.0977356,3.6853768 36.7666643,3.08851175 35.8970929,3.08851175 L35.8970929,3.08851175 Z" id="Shape"/></g><g id="Group" transform="translate(31.089950, 9.692461)" fill="#FFF"><path d="M35.9557141,30.1104408 L2.2460048,30.1104408 C1.06754504,30.1104408 0.108696421,29.1416005 0.108696421,27.9508606 L0.108696421,2.15958018 C0.108696421,0.970052861 1.06754504,0 2.2460048,0 L35.9557141,0 C37.1353739,0 38.0942225,0.970052861 38.0942225,2.15958018 L38.0942225,27.9496481 C38.0954226,29.1416005 37.136574,30.1104408 35.9557141,30.1104408 L35.9557141,30.1104408 Z M2.35881052,27.8368794 L35.8441084,27.8368794 L35.8441084,2.27356139 L2.35881052,2.27356139 L2.35881052,27.8368794 L2.35881052,27.8368794 Z" id="Shape"/><path d="M23.1474646,19.4568353 L23.1474646,22.9502381 C23.1474646,23.5977484 22.5258331,24.1227895 21.7625944,24.1227895 L21.5225822,24.1227895 L21.5225822,26.2193163 L34.0248162,26.2193163 L34.0248162,19.4556227 L23.1474646,19.4556227 L23.1474646,19.4568353 Z" id="Shape"/><rect id="Rectangle-path" x="23.147" y="11.898" width="10.879" height="6.259"/><path d="M21.5237823,3.8996125 L21.5237823,5.98643872 L21.7637945,5.98643872 C22.5258331,5.98643872 23.1486647,6.5126924 23.1486647,7.15899012 L23.1486647,10.6620935 L34.0272163,10.6620935 L34.0272163,3.8996125 L21.5237823,3.8996125 L21.5237823,3.8996125 Z" id="Shape"/><path d="M16.4403245,24.1240021 C15.6758858,24.1240021 15.0554543,23.598961 15.0554543,22.9514507 L15.0554543,19.4580478 L4.1156996,19.4580478 L4.1156996,26.2217414 L16.6203337,26.2217414 L16.6203337,24.1252147 L16.4403245,24.1240021 L16.4403245,24.1240021 Z" id="Shape"/><rect id="Rectangle-path" x="4.116" y="11.898" width="10.94" height="6.259"/><path d="M15.0554543,7.16020268 C15.0554543,6.51390496 15.6758858,5.98765129 16.4403245,5.98765129 L16.6203337,5.98765129 L16.6203337,3.8996125 L4.1156996,3.8996125 L4.1156996,10.6633061 L15.0554543,10.6633061 L15.0554543,7.16020268 L15.0554543,7.16020268 Z" id="Shape"/><path d="M21.8970012,22.1366063 C21.8970012,22.5112892 21.596986,22.8144307 21.2261672,22.8144307 L16.9767517,22.8144307 C16.6059329,22.8144307 16.3059177,22.5112892 16.3059177,22.1366063 L16.3059177,8.05022618 C16.3059177,7.67554326 16.6059329,7.37240175 16.9767517,7.37240175 L21.2261672,7.37240175 C21.596986,7.37240175 21.8970012,7.67554326 21.8970012,8.05022618 L21.8970012,22.1366063 L21.8970012,22.1366063 Z" id="Shape"/></g></g></g></svg> |