mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 08:58:30 +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
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>ApplePay-dark</title><desc>Created with Sketch.</desc><g id="Dark-Payment-badges" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(-610.000000, -789.000000)"><g id="ApplePay-dark" transform="translate(610.000000, 789.000000)"><rect id="Rectangle" fill="#000" x="0" y="0" width="100" height="60" rx="4"/><path d="M31.8863275,26.9583905 C31.9233184,30.7827367 35.3852633,32.0551213 35.4235752,32.0714675 C35.394511,32.1616982 34.8706945,33.8852367 33.5997954,35.6663136 C32.5013,37.2054675 31.3605294,38.7393905 29.5651532,38.771429 C27.8001624,38.8028136 27.2327495,37.768429 25.2147679,37.768429 C23.1974468,37.768429 22.5666211,38.7393905 20.896089,38.8028136 C19.1628046,38.8655829 17.8423642,37.1374675 16.7346211,35.6035444 C14.4709147,32.4657367 12.740933,26.7373905 15.064089,22.8705444 C16.2180706,20.9501982 18.2796486,19.7340444 20.5182541,19.7033136 C22.2204927,19.671929 23.8276119,20.8011213 24.8686395,20.8011213 C25.9083459,20.8011213 27.8615936,19.4430829 29.9145844,19.6425059 C30.7739606,19.6771598 33.1862908,19.9753136 34.7352817,22.1493521 C34.6097771,22.2238905 31.8559422,23.7610829 31.8863275,26.9583905 M28.5690431,17.5665444 C29.4891899,16.4981598 30.1094468,15.0113136 29.9403459,13.5316598 C28.6133,13.5826598 27.0088229,14.3790444 26.0576303,15.4467752 C25.2041991,16.3922367 24.4577771,17.9052367 24.659245,19.3561213 C26.1382174,19.4659675 27.6488963,18.6355829 28.5690431,17.5665444" id="path2997" fill="#FFF"/><path d="M41.8915098,15.737921 C42.5738874,15.6241858 43.3257727,15.5220825 44.1491705,15.430965 C44.9719001,15.3398476 45.8768358,15.294612 46.8653142,15.294612 C48.2761851,15.294612 49.4925684,15.4593989 50.5151323,15.7889727 C51.5383646,16.1185465 52.3784711,16.5902894 53.03612,17.2042013 C53.6008694,17.7496137 54.0426437,18.3971293 54.3594381,19.1473943 C54.6762324,19.8976594 54.8339612,20.7616598 54.8339612,21.7393954 C54.8339612,22.9213375 54.6174182,23.9559408 54.1823273,24.8425589 C53.7479047,25.7291771 53.1544166,26.4736261 52.401863,27.0759061 C51.6486411,27.6781861 50.7557356,28.1266649 49.7211415,28.4226351 C48.6858791,28.7179591 47.557717,28.8659442 46.3346503,28.8659442 C45.2298803,28.8659442 44.3015526,28.7864588 43.5496674,28.6274879 L43.5496674,38.4487872 L41.8915098,38.4487872 L41.8915098,15.737921 L41.8915098,15.737921 Z M43.5496674,27.1961036 C43.9493362,27.3091927 44.3957889,27.3886781 44.889694,27.4339137 C45.383599,27.4791493 45.9122579,27.5017672 46.4763389,27.5017672 C48.5923111,27.5017672 50.2324235,27.0242083 51.3960077,26.0697367 C52.5595919,25.1152651 53.1417181,23.7168382 53.1417181,21.8757485 C53.1417181,20.9891303 52.989336,20.2156012 52.6839036,19.5564536 C52.3778027,18.8966598 51.9433801,18.3570634 51.3792991,17.9363722 C50.8152181,17.5156809 50.1448706,17.1977391 49.368925,16.9812544 C48.5923111,16.7654158 47.7341594,16.6574966 46.7931332,16.6574966 C46.041248,16.6574966 45.3942925,16.6859304 44.8536035,16.742798 C44.3129144,16.7996657 43.8778235,16.8623493 43.548999,16.9302027 L43.548999,27.1961036 L43.5496674,27.1961036 Z" id="path2995" fill="#FFF"/><path d="M68.0196893,34.561755 C68.0196893,35.2209026 68.0310511,35.8806965 68.0544431,36.5398441 C68.0778351,37.1989917 68.148011,37.8348752 68.2663076,38.4487872 L66.7144165,38.4487872 L66.4677981,36.1301386 L66.3962855,36.1301386 C66.1850893,36.4487266 65.9144106,36.7666684 65.5855861,37.0846102 C65.2567616,37.402552 64.8744697,37.6927061 64.4400471,37.9544265 C64.0049562,38.2161469 63.5110511,38.4261694 62.9583319,38.5851403 C62.4056127,38.743465 61.8007628,38.8235967 61.1424455,38.8235967 C60.319716,38.8235967 59.5959011,38.6924134 58.9723376,38.4319854 C58.3494424,38.1702651 57.8381605,37.8290592 57.4384917,37.4090142 C57.0388229,36.9876767 56.7394055,36.504948 56.5395711,35.9595357 C56.3397367,35.4141233 56.2401537,34.868711 56.2401537,34.3226524 C56.2401537,32.3904452 57.0802601,30.9015471 58.7611414,29.8553118 C60.442691,28.8090766 62.9763772,28.3095461 66.3628684,28.3547817 L66.3628684,27.9114726 C66.3628684,27.4791493 66.3214311,26.9841424 66.239225,26.4270981 C66.1563505,25.8700537 65.9745614,25.3414432 65.6918525,24.8419127 C65.409812,24.3423822 64.9867513,23.9216909 64.4226702,23.5811313 C63.8585892,23.2399255 63.0940055,23.0693226 62.1302557,23.0693226 C61.401094,23.0693226 60.6786159,23.1772419 59.9614844,23.3930804 C59.244353,23.6089189 58.5920508,23.9100589 58.0045777,24.2965004 L57.4752505,23.1029262 C58.2271358,22.6033957 59.0037497,22.2453881 59.8024189,22.0295496 C60.6024248,21.813711 61.4365162,21.7057918 62.3066981,21.7057918 C63.4823124,21.7057918 64.4407155,21.8990125 65.1812389,22.2854539 C65.9217623,22.6718954 66.5038886,23.1720721 66.9269494,23.7853379 C67.3500101,24.3992498 67.6387341,25.0868313 67.7911162,25.8487284 C67.9434982,26.6106254 68.021026,27.3667065 68.021026,28.1163254 L68.021026,34.561755 L68.0196893,34.561755 Z M66.3622,29.6853552 C65.4679578,29.6620911 64.5329467,29.696341 63.5571668,29.7874584 C62.5820551,29.8779297 61.6824662,30.0776126 60.8597367,30.3839224 C60.0363388,30.6908784 59.3552978,31.1400035 58.8146088,31.7312976 C58.2739198,32.3225918 58.0032411,33.1064605 58.0032411,34.0841961 C58.0032411,35.2428742 58.3440957,36.0958888 59.0264733,36.6413011 C59.7075143,37.1867134 60.4714297,37.4600658 61.3182196,37.4600658 C61.9999289,37.4600658 62.6114622,37.3695946 63.1521513,37.1867134 C63.6928403,37.0044785 64.1620167,36.7602062 64.5623538,36.4538964 C64.9626909,36.1475866 65.2968622,35.8005648 65.5675408,35.4141233 C65.8388879,35.0270357 66.044069,34.6302547 66.1857576,34.219903 C66.3033859,33.7649619 66.3628684,33.4353881 66.3628684,33.2298891 L66.3628684,29.6853552 L66.3622,29.6853552 Z" id="path2998" fill="#FFF"/><path d="M71.2618185,22.079955 L75.5632704,32.7193728 C75.7991953,33.310667 76.0224217,33.918763 76.2342863,34.544307 C76.4461508,35.1685585 76.633955,35.7436971 76.7983673,36.2658454 L76.8692116,36.2658454 C77.0342922,35.766315 77.221428,35.2034546 77.4332926,34.5779106 C77.6451572,33.9530128 77.8804137,33.310667 78.1383939,32.650227 L82.1598104,22.0793088 L83.9222294,22.0793088 L79.0212742,34.0835499 C78.5267008,35.3559633 78.0628712,36.510764 77.6277802,37.544721 C77.1933577,38.5793243 76.7515833,39.5111781 76.3051306,40.3409286 C75.8580095,41.1706791 75.40621,41.9034962 74.9463904,42.5406722 C74.4885758,43.1765558 73.9759571,43.7342463 73.4125445,44.211159 C72.7548955,44.7791892 72.1487089,45.1947106 71.5959897,45.456431 C71.0439388,45.7181514 70.6736771,45.8829383 70.4852045,45.9507917 L69.9197868,44.6208645 C70.343516,44.4386296 70.814029,44.2001732 71.3313261,43.9048492 C71.8486231,43.608879 72.3545584,43.2230838 72.8477951,42.7455249 C73.2715242,42.3364657 73.7360222,41.7968693 74.2412891,41.1254435 C74.746556,40.4553101 75.1990238,39.6423614 75.5993609,38.6872436 C75.7403812,38.3234199 75.8112255,38.0843174 75.8112255,37.9705821 C75.8112255,37.8122574 75.7410495,37.5731549 75.5993609,37.2545669 L69.4973944,22.0793088 L71.2618185,22.0793088 L71.2618185,22.079955 Z" id="path3000" fill="#FFF"/></g></g></svg> |