mirror of
https://github.com/simple-login/app.git
synced 2024-11-18 01:40:38 +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.6 KiB
XML
Executable file
1 line
No EOL
7.6 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>OkPay-light</title><desc>Created with Sketch.</desc><g id="Light-Payment-badges" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(-450.000000, -689.000000)"><g id="OkPay-light" transform="translate(450.000000, 689.000000)"><rect id="Rectangle" fill="#FFF" x="0" y="0" width="100" height="60" rx="4"/><path d="M86.1174431,22.4053139 L84.9882627,22.4053139 C84.2657583,22.4053139 83.7293555,22.8902628 83.3136077,23.4820292 L82.1966095,25.0740438 C82.1959615,25.0747007 82.1959615,25.0753577 82.1953135,25.0760146 L79.7758634,28.5220292 L77.677944,25.5363942 C77.6683538,25.5214161 77.6632995,25.5077518 77.6524133,25.4922482 L76.2392855,23.4859708 C75.8225009,22.8947299 75.2807846,22.4105693 74.5584098,22.4105693 L73.5116532,22.4105693 C72.7891489,22.4105693 72.3210438,22.894073 72.7392539,23.484 L74.160676,25.4940876 C74.1637863,25.4980292 74.1676743,25.5019708 74.1709142,25.506438 L78.2169387,31.2186131 L78.2169387,37.6854745 C78.2169387,38.4095474 78.8084203,39.0006569 79.5310543,39 L80.0206725,38.9986861 C80.7433065,38.9981606 81.3347881,38.404292 81.3347881,37.680219 L81.3347881,31.2121752 L85.6449317,25.1285693 C85.6582802,25.1110949 85.6756462,25.094146 85.6883468,25.0760146 L86.8150648,23.4800584 C87.2331454,22.8889489 86.8399475,22.4053139 86.1174431,22.4053139" id="Fill-1" fill="#D2642C"/><path d="M38.9536532,30.1809197 L43.0135447,26.2726861 C43.0323363,26.2558686 45.8834746,23.5113285 45.8834746,23.5113285 C46.3965499,23.0166569 45.8444658,22.4053139 45.1414011,22.4053139 L43.5976392,22.4053139 C42.8948336,22.4053139 42.5397373,22.8110365 42.0275692,23.3076788 L39.0223398,26.2209197 C39.0197478,26.2234161 39.0181926,26.2260438 39.0153415,26.2293285 L37.0814921,28.1039562 L37.0814921,25.9783796 L37.0731979,25.9783796 C37.0751419,25.9498686 37.0814921,25.9220146 37.0814921,25.8935036 L37.0814921,23.7225985 C37.0814921,22.9985255 36.5065989,22.4053139 35.8036637,22.4053139 L35.2296778,22.4053139 C34.5270018,22.4053139 33.9518494,22.9985255 33.9518494,23.7225985 L33.9518494,25.8935036 C33.9518494,25.9220146 33.9583292,25.9498686 33.9601436,25.9783796 L33.9518494,25.9783796 L33.9518494,37.6828467 C33.9518494,38.4069197 34.5270018,39 35.2296778,39 L35.8036637,39 C36.5065989,39 37.0814921,38.4069197 37.0814921,37.6828467 L37.0814921,32.4418248 L39.8365989,35.2766277 L39.8398389,35.2766277 L42.5517898,38.0699124 C43.0493135,38.5812701 43.3919685,39 44.0950333,39 L45.6407391,39 C46.3435447,39 46.6430438,38.1430949 46.1455201,37.6316058 L38.9536532,30.1809197" id="Fill-3" fill="#D2642C"/><path d="M69.5185044,31.8052555 L66.4935762,31.8052555 C66.1303152,31.8052555 65.9456392,31.5310511 66.0818459,31.1953577 L67.7524834,27.1004234 C67.8894676,26.7647299 68.1138004,26.7647299 68.251303,27.0997664 L69.9297163,31.1960146 C70.0672189,31.5310511 69.8817653,31.8052555 69.5185044,31.8052555 L69.5185044,31.8052555 Z M75.5947986,37.3574015 L75.6025744,37.3574015 L70.3287461,24.2443358 L70.3261541,24.2443358 L70.0787531,23.6285255 C69.8089317,22.9556934 68.9936357,22.4053139 68.2672434,22.4053139 L67.7430228,22.4053139 C67.0166305,22.4053139 66.2019825,22.9563504 65.9341051,23.6298394 L65.6898144,24.2443358 L65.6808722,24.2443358 L60.4270018,37.2880292 L60.4288161,37.2880292 L60.230662,37.7781022 C59.9588967,38.4504088 60.3322662,39 61.0586585,39 L62.2344939,39 C62.9608862,39 63.3023748,38.4444964 63.5548301,37.7650949 L63.7319895,37.2880292 L63.7391173,37.2880292 L64.8010368,34.4637372 L71.2232259,34.4637372 L71.3101856,34.6905109 L71.374725,34.8254453 L72.3216918,37.3574015 L72.3249317,37.3574015 L72.4770788,37.7650949 C72.7303117,38.4444964 73.1740525,39 73.9010928,39 L74.9407215,39 C75.6677618,39 76.0391874,38.4509343 75.7661261,37.7794161 L75.5947986,37.3574015 L75.5947986,37.3574015 Z" id="Fill-4" fill="#D2642C"/><path d="M59.2485744,28.630292 C59.1270123,28.9376058 58.9499825,29.1936788 58.71269,29.4041606 L58.715282,29.4016642 L58.713338,29.4041606 C58.2375867,29.8236788 57.5292084,30.0525547 56.5751138,30.0525547 L54.8519895,30.0525547 C54.4830263,30.0525547 54.181324,29.7562774 54.181324,29.3939124 L54.181324,25.7002336 C54.181324,25.3385255 54.4830263,25.0417226 54.8519895,25.0417226 L56.5751138,25.0417226 C57.5292084,25.0417226 58.2375867,25.2704672 58.71269,25.6911679 C58.9505009,25.9012555 59.1270123,26.1553577 59.2485744,26.4631971 C59.368711,26.7705109 59.4313065,27.1290657 59.4313065,27.5418832 C59.4313065,27.9587737 59.368711,28.3204818 59.2485744,28.630292 L59.2485744,28.630292 Z M62.3598144,29.7582482 C62.6283398,29.1112993 62.7607881,28.3704088 62.7607881,27.5418832 C62.7607881,26.719927 62.6283398,25.9835036 62.3598144,25.3404964 C62.0925849,24.6974891 61.6885009,24.1477664 61.1532644,23.7069635 C60.090697,22.8325839 58.5431769,22.4053139 56.5751138,22.4053139 L52.3161611,22.4053139 C51.5790123,22.4053139 50.9752189,22.9985255 50.9752189,23.7225985 L50.9752189,37.6828467 C50.9752189,38.4069197 51.5790123,39 52.3161611,39 L52.8403818,39 C53.5776602,39 54.181324,38.4069197 54.181324,37.6828467 L54.181324,32.6888321 L56.5751138,32.6888321 C58.5431769,32.6888321 60.090697,32.2649781 61.1526165,31.392438 C61.6865569,30.9541314 62.0925849,30.4038832 62.3598144,29.7582482 L62.3598144,29.7582482 Z" id="Fill-5" fill="#D2642C"/><path d="M27.9997093,34.6595036 C27.5598564,35.2105401 27.0566305,35.6129781 26.475387,35.8800876 C25.8941436,36.1471971 25.2302172,36.2826569 24.4698704,36.2826569 C23.7077093,36.2826569 23.043394,36.1471971 22.4599475,35.8800876 C21.8742977,35.6129781 21.3688687,35.2065985 20.9249982,34.6549051 C20.4042767,34.0118978 20.0366095,33.2067591 19.8144799,32.2570949 L19.6094571,30.8745109 C19.6031068,30.7914745 19.5987005,30.6164672 19.5963678,30.4284526 C19.5922207,30.2313723 19.5900175,30.0123504 19.5900175,29.8334015 C19.5900175,29.6798102 19.5922207,29.5532847 19.5944238,29.5008613 L19.75331,28.118146 C19.9601471,27.0369635 20.3517898,26.1313139 20.9249982,25.4182774 L20.9225359,25.4227445 L20.9249982,25.4227445 C21.3688687,24.8665839 21.8742977,24.464146 22.4599475,24.1976934 C23.043394,23.9305839 23.7077093,23.7951241 24.4698704,23.7951241 C25.2302172,23.7951241 25.8941436,23.9305839 26.475387,24.1976934 C27.0566305,24.464146 27.5598564,24.8665839 27.9997093,25.4182774 C28.8795447,26.5210073 29.3363748,28.0695328 29.3363748,30.0434891 C29.3363748,32.0120584 28.8795447,33.5569051 27.9997093,34.6595036 L27.9997093,34.6595036 Z M30.4234361,23.5410219 C28.937993,21.9048613 26.9171839,21.0731825 24.4698704,21.077781 C22.0114116,21.0731825 19.9864553,21.9048613 18.4988091,23.5410219 C17.4035832,24.7401898 16.7114046,26.2584964 16.4259019,28.0520584 L16.4259019,28.0566569 L16.2931944,29.4697226 L16.2931944,29.4787883 C16.2842522,29.6583942 16.2737548,29.8418102 16.2737548,30.0434891 C16.2737548,30.3409489 16.2868441,30.6294745 16.3040806,30.9094599 L16.3040806,30.9185255 L16.4847391,32.3317226 L16.4847391,32.3361898 C16.7983643,33.9944234 17.4642347,35.4120876 18.4988091,36.5452993 C19.9864553,38.1729197 22.0114116,39.0045985 24.4698704,39 C26.9171839,39.0045985 28.937993,38.1729197 30.4234361,36.5367591 C31.8994186,34.9129489 32.6423993,32.7166861 32.6423993,30.0434891 C32.6423993,27.365562 31.9020105,25.1641752 30.4234361,23.5410219 L30.4234361,23.5410219 Z" id="Fill-6" fill="#D2642C"/><polyline id="Fill-8" fill="#D2642C" points="24.4267145 29.0431095 13.654725 29.0431095 14.6681751 27.0519416 25.4401646 27.0519416 24.4267145 29.0431095"/><polyline id="Fill-9" fill="#D2642C" points="22.4084974 33.0259708 13 33.0259708 14.0674921 31.0345401 23.4759895 31.0345401 22.4084974 33.0259708"/></g></g></svg> |